aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-08-02 13:13:46 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-08-02 13:13:46 +0200
commitab655650034b2acf36ce0237acaaf28b5d2572c0 (patch)
treec6d277c2650712726445c6cb15c47ffa63676263 /remote.go
parent171b3a73e7ab7015f9eb8e98965e36dfb8ea9599 (diff)
downloadgo-git-ab655650034b2acf36ce0237acaaf28b5d2572c0.tar.gz
*: use the new API for ReferenceName.Is* methods
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote.go b/remote.go
index fe44009..f6cb728 100644
--- a/remote.go
+++ b/remote.go
@@ -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
}