From eb7531b206352f8e89d481d311a10828052faa01 Mon Sep 17 00:00:00 2001 From: Ryooooooga Date: Wed, 6 Oct 2021 22:57:02 +0900 Subject: Fix error prompt when new tag name starts with '--' --- pkg/commands/tags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/commands') diff --git a/pkg/commands/tags.go b/pkg/commands/tags.go index 18c09194c..fc76d3651 100644 --- a/pkg/commands/tags.go +++ b/pkg/commands/tags.go @@ -3,7 +3,7 @@ package commands import "fmt" func (c *GitCommand) CreateLightweightTag(tagName string, commitSha string) error { - return c.RunCommand("git tag %s %s", tagName, commitSha) + return c.RunCommand("git tag -- %s %s", tagName, commitSha) } func (c *GitCommand) DeleteTag(tagName string) error { -- cgit v1.2.3