From 47c66c37d1849d49f9e79b14a5463e550c31c9c8 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 2 Aug 2020 12:14:03 -0700 Subject: Support tag references --- tools/pubrefman/pubrefman.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') 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() -- cgit v1.2.3-70-g09d2