diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-07 21:59:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-04 09:07:15 +1100 |
commit | b4c078d565af69bcb2f46adc20e528e53ae32908 (patch) | |
tree | 7a336c0169b7eab49765d39f7a0dd5537e919ba2 /pkg/commands/tags.go | |
parent | 157dd309f75f2ce3c23be53ddd2e4baa49a67321 (diff) |
WIP
Diffstat (limited to 'pkg/commands/tags.go')
-rw-r--r-- | pkg/commands/tags.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/commands/tags.go b/pkg/commands/tags.go index bb04d38e6..bd1f55c65 100644 --- a/pkg/commands/tags.go +++ b/pkg/commands/tags.go @@ -5,7 +5,7 @@ import ( ) func (c *GitCommand) CreateLightweightTag(tagName string, commitSha string) error { - return c.RunCommand("git tag -- %s %s", c.OSCommand.Quote(tagName), commitSha) + return c.Run(c.NewCmdObj(fmt.Sprintf("git tag -- %s %s", c.OSCommand.Quote(tagName), commitSha))) } func (c *GitCommand) CreateAnnotatedTag(tagName, commitSha, msg string) error { @@ -13,11 +13,11 @@ func (c *GitCommand) CreateAnnotatedTag(tagName, commitSha, msg string) error { } func (c *GitCommand) DeleteTag(tagName string) error { - return c.RunCommand("git tag -d %s", c.OSCommand.Quote(tagName)) + return c.Run(c.NewCmdObj(fmt.Sprintf("git tag -d %s", c.OSCommand.Quote(tagName)))) } func (c *GitCommand) PushTag(remoteName string, tagName string, promptUserForCredential func(string) string) error { cmdStr := fmt.Sprintf("git push %s %s", c.OSCommand.Quote(remoteName), c.OSCommand.Quote(tagName)) - cmdObj := c.NewCmdObjFromStr(cmdStr) + cmdObj := c.NewCmdObj(cmdStr) return c.DetectUnamePass(cmdObj, promptUserForCredential) } |