summaryrefslogtreecommitdiffstats
path: root/pkg/commands/tags.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/tags.go')
-rw-r--r--pkg/commands/tags.go6
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)
}