summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2021-05-01 15:31:44 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2021-05-01 15:31:44 -0600
commitc022dea68713ed072dda0f9c070db5bcec00b72a (patch)
tree505b95c5730ffb70c4da2831a56dab8c13a48594
parent554090886c69cba9b3389d3ee86f61292aafaed1 (diff)
fixup! tag v2next
-rw-r--r--cmd_command.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd_command.go b/cmd_command.go
index de0d4c5..819d6eb 100644
--- a/cmd_command.go
+++ b/cmd_command.go
@@ -209,6 +209,8 @@ func (CmdTag) fiCmdRead(fir fiReader) (cmd Cmd, err error) {
// ('refname' SP <refname> LF)?
if strings.HasPrefix(ez.PeekLine(), "refname ") {
c.RefName = trimLinePrefix(ez.ReadLine(), "refname ")
+ } else {
+ c.RefName = "refs/tags/" + c.TagName
}
// 'from' SP <commit-ish> LF