summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorRyooooooga <eial5q265e5@gmail.com>2021-10-06 22:57:02 +0900
committerRyooooooga <eial5q265e5@gmail.com>2021-10-06 22:57:02 +0900
commiteb7531b206352f8e89d481d311a10828052faa01 (patch)
tree6fa4eabe4135bddd898fb5eba86bd843e4103dfa /pkg/commands
parent428ce2d0f2e7c8f0abfe74de03c7e3ca3cd1e615 (diff)
Fix error prompt when new tag name starts with '--'
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/tags.go2
1 files changed, 1 insertions, 1 deletions
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 {