aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-08-02 12:14:03 -0700
committerGarrett D'Amore <garrett@damore.org>2020-08-08 10:10:13 -0700
commit47c66c37d1849d49f9e79b14a5463e550c31c9c8 (patch)
treef33efe6b7aed24fac04ffa73dd9368861a7c9a38 /tools
parent92723e389bbc19e43b9ac5dbdaaacc131ab2b103 (diff)
downloadnng-47c66c37d1849d49f9e79b14a5463e550c31c9c8.tar.gz
nng-47c66c37d1849d49f9e79b14a5463e550c31c9c8.tar.bz2
nng-47c66c37d1849d49f9e79b14a5463e550c31c9c8.zip
Support tag references
Diffstat (limited to 'tools')
-rw-r--r--tools/pubrefman/pubrefman.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/pubrefman/pubrefman.go b/tools/pubrefman/pubrefman.go
index 4dee0ea0..9ed3f5af 100644
--- a/tools/pubrefman/pubrefman.go
+++ b/tools/pubrefman/pubrefman.go
@@ -149,6 +149,9 @@ func (g *Global) CloneSource() {
tag = "master"
}
ref := plumbing.NewBranchReferenceName(tag)
+ if strings.HasPrefix(tag, "v") {
+ ref = plumbing.NewTagReferenceName(tag)
+ }
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()