summaryrefslogtreecommitdiffstats
path: root/pkg/commands/config.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/config.go
parent4c71c26593e76e34bafcb7df717e53204b522da5 (diff)
add retry logic for running git commands to avoid index.lock problems
Diffstat (limited to 'pkg/commands/config.go')
-rw-r--r--pkg/commands/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/config.go b/pkg/commands/config.go
index f22d72ffa..0bb310e6d 100644
--- a/pkg/commands/config.go
+++ b/pkg/commands/config.go
@@ -15,7 +15,7 @@ func (c *GitCommand) ConfiguredPager() string {
if os.Getenv("PAGER") != "" {
return os.Getenv("PAGER")
}
- output, err := c.OSCommand.RunCommandWithOutput("git config --get-all core.pager")
+ output, err := c.RunCommandWithOutput("git config --get-all core.pager")
if err != nil {
return ""
}