diff options
Diffstat (limited to 'pkg/commands/git_commands/tag_loader.go')
-rw-r--r-- | pkg/commands/git_commands/tag_loader.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/commands/git_commands/tag_loader.go b/pkg/commands/git_commands/tag_loader.go index 2dc5a4f41..67d26f80b 100644 --- a/pkg/commands/git_commands/tag_loader.go +++ b/pkg/commands/git_commands/tag_loader.go @@ -28,7 +28,8 @@ func NewTagLoader( func (self *TagLoader) GetTags() ([]*models.Tag, error) { // get remote branches, sorted by creation date (descending) // see: https://git-scm.com/docs/git-tag#Documentation/git-tag.txt---sortltkeygt - tagsOutput, err := self.cmd.New(`git tag --list -n --sort=-creatordate`).DontLog().RunWithOutput() + cmdStr := NewGitCmd("tag").Arg("--list", "-n", "--sort=-creatordate").ToString() + tagsOutput, err := self.cmd.New(cmdStr).DontLog().RunWithOutput() if err != nil { return nil, err } |