aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()