summaryrefslogtreecommitdiffstats
path: root/pkg/commands/loading_stash.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-05 21:08:33 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commit5ce9e0193a47692d38a2b2aa549630458ccf3038 (patch)
tree205d9730e521e566123669035bc0c05e536ad1dd /pkg/commands/loading_stash.go
parent4c71c26593e76e34bafcb7df717e53204b522da5 (diff)
add retry logic for running git commands to avoid index.lock problems
Diffstat (limited to 'pkg/commands/loading_stash.go')
-rw-r--r--pkg/commands/loading_stash.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/loading_stash.go b/pkg/commands/loading_stash.go
index 8d0b4a817..e14b463dd 100644
--- a/pkg/commands/loading_stash.go
+++ b/pkg/commands/loading_stash.go
@@ -25,7 +25,7 @@ func (c *GitCommand) GetStashEntries(filterPath string) []*models.StashEntry {
return c.getUnfilteredStashEntries()
}
- rawString, err := c.OSCommand.RunCommandWithOutput("git stash list --name-only")
+ rawString, err := c.RunCommandWithOutput("git stash list --name-only")
if err != nil {
return c.getUnfilteredStashEntries()
}