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/loading_stash.go | |
parent | 157dd309f75f2ce3c23be53ddd2e4baa49a67321 (diff) |
WIP
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() } |