diff options
Diffstat (limited to 'pkg/commands/loading_stash.go')
-rw-r--r-- | pkg/commands/loading_stash.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/commands/loading_stash.go b/pkg/commands/loading_stash.go index e14b463dd..40867a26b 100644 --- a/pkg/commands/loading_stash.go +++ b/pkg/commands/loading_stash.go @@ -10,8 +10,7 @@ import ( ) func (c *GitCommand) getUnfilteredStashEntries() []*models.StashEntry { - unescaped := "git stash list --pretty='%gs'" - rawString, _ := c.OSCommand.RunCommandWithOutput(unescaped) + rawString, _ := c.RunWithOutput(c.NewCmdObj("git stash list --pretty='%gs'")) stashEntries := []*models.StashEntry{} for i, line := range utils.SplitLines(rawString) { stashEntries = append(stashEntries, stashEntryFromLine(line, i)) @@ -25,7 +24,7 @@ func (c *GitCommand) GetStashEntries(filterPath string) []*models.StashEntry { return c.getUnfilteredStashEntries() } - rawString, err := c.RunCommandWithOutput("git stash list --name-only") + rawString, err := c.RunWithOutput(c.NewCmdObj("git stash list --name-only")) if err != nil { return c.getUnfilteredStashEntries() } |