diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-08-02 13:13:46 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-08-02 13:13:46 +0200 |
commit | ab655650034b2acf36ce0237acaaf28b5d2572c0 (patch) | |
tree | c6d277c2650712726445c6cb15c47ffa63676263 /remote.go | |
parent | 171b3a73e7ab7015f9eb8e98965e36dfb8ea9599 (diff) | |
download | go-git-ab655650034b2acf36ce0237acaaf28b5d2572c0.tar.gz |
*: use the new API for ReferenceName.Is* methods
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -464,7 +464,7 @@ func calculateRefs(spec []config.RefSpec, refs := make(memory.ReferenceStorage, 0) return refs, iter.ForEach(func(ref *plumbing.Reference) error { if !config.MatchAny(spec, ref.Name()) { - if !ref.IsTag() || tags != AllTags { + if !ref.Name().IsTag() || tags != AllTags { return nil } } @@ -663,7 +663,7 @@ func (r *Remote) updateLocalReferenceStorage( func (r *Remote) buildFetchedTags(refs memory.ReferenceStorage) (updated bool, err error) { for _, ref := range refs { - if !ref.IsTag() { + if !ref.Name().IsTag() { continue } |