summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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