diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2018-08-09 10:37:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 10:37:40 +0200 |
commit | c3740924da0d1929cb523c85ae9da3b456b901ea (patch) | |
tree | fd1664bfb917a5455cf64ad0db13d7b8add57ed5 /remote.go | |
parent | 43d17e14b714665ab5bc2ecc220b6740779d733f (diff) | |
parent | 7b1248177ad3533c63590c7c47495f28f0f3da71 (diff) | |
download | go-git-c3740924da0d1929cb523c85ae9da3b456b901ea.tar.gz |
Merge pull request #910 from fkorotkov/fedor/fix-tag-cloning
Fixed cloning of a single tag
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |