From c022dea68713ed072dda0f9c070db5bcec00b72a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 1 May 2021 15:31:44 -0600 Subject: fixup! tag v2 --- cmd_command.go | 2 ++ 1 file changed, 2 insertions(+) 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 LF)? if strings.HasPrefix(ez.PeekLine(), "refname ") { c.RefName = trimLinePrefix(ez.ReadLine(), "refname ") + } else { + c.RefName = "refs/tags/" + c.TagName } // 'from' SP LF -- cgit v1.2.3-2-g168b