diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-08-02 12:14:03 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-08-08 10:10:13 -0700 |
| commit | 47c66c37d1849d49f9e79b14a5463e550c31c9c8 (patch) | |
| tree | f33efe6b7aed24fac04ffa73dd9368861a7c9a38 | |
| parent | 92723e389bbc19e43b9ac5dbdaaacc131ab2b103 (diff) | |
| download | nng-47c66c37d1849d49f9e79b14a5463e550c31c9c8.tar.gz nng-47c66c37d1849d49f9e79b14a5463e550c31c9c8.tar.bz2 nng-47c66c37d1849d49f9e79b14a5463e550c31c9c8.zip | |
Support tag references
| -rw-r--r-- | tools/pubrefman/pubrefman.go | 3 |
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() |
