summaryrefslogtreecommitdiffstats
path: root/pkg/commands/loading_branches.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/loading_branches.go')
-rw-r--r--pkg/commands/loading_branches.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/loading_branches.go b/pkg/commands/loading_branches.go
index 7565a9aee..5453db2de 100644
--- a/pkg/commands/loading_branches.go
+++ b/pkg/commands/loading_branches.go
@@ -38,7 +38,7 @@ func NewBranchListBuilder(log *logrus.Entry, gitCommand *GitCommand, reflogCommi
func (b *BranchListBuilder) obtainBranches() []*models.Branch {
cmdStr := `git for-each-ref --sort=-committerdate --format="%(HEAD)|%(refname:short)|%(upstream:short)|%(upstream:track)" refs/heads`
- output, err := b.GitCommand.OSCommand.RunCommandWithOutput(cmdStr)
+ output, err := b.GitCommand.RunWithOutput(b.GitCommand.NewCmdObj(cmdStr))
if err != nil {
panic(err)
}