diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2021-05-01 15:31:44 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2021-05-01 15:31:44 -0600 |
commit | c022dea68713ed072dda0f9c070db5bcec00b72a (patch) | |
tree | 505b95c5730ffb70c4da2831a56dab8c13a48594 | |
parent | 554090886c69cba9b3389d3ee86f61292aafaed1 (diff) |
fixup! tag v2next
-rw-r--r-- | cmd_command.go | 2 |
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 |