aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorFedor Korotkov <fedor.korotkov@gmail.com>2018-08-08 09:09:12 -0400
committerFedor Korotkov <fedor.korotkov@gmail.com>2018-08-08 09:09:12 -0400
commit7b1248177ad3533c63590c7c47495f28f0f3da71 (patch)
treefd1664bfb917a5455cf64ad0db13d7b8add57ed5 /remote.go
parent43d17e14b714665ab5bc2ecc220b6740779d733f (diff)
downloadgo-git-7b1248177ad3533c63590c7c47495f28f0f3da71.tar.gz
Fixed cloning of a single tag
Relates to #870 Signed-off-by: Fedor Korotkov <fedor.korotkov@gmail.com>
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 bf4519c..0556b98 100644
--- a/remote.go
+++ b/remote.go
@@ -619,7 +619,7 @@ func getHaves(
return result, nil
}
-const refspecTag = "+refs/tags/*:refs/tags/*"
+const refspecAllTags = "+refs/tags/*:refs/tags/*"
func calculateRefs(
spec []config.RefSpec,
@@ -627,7 +627,7 @@ func calculateRefs(
tagMode TagMode,
) (memory.ReferenceStorage, error) {
if tagMode == AllTags {
- spec = append(spec, refspecTag)
+ spec = append(spec, refspecAllTags)
}
refs := make(memory.ReferenceStorage)