Skip to content

Commit

Permalink
Use --no-optional-locks for background tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jessehouwing authored Jan 12, 2023
1 parent 105a6e0 commit b46d8a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions segment-gitlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func segmentGitLite(p *powerline) []pwl.Segment {
if len(p.ignoreRepos) > 0 {
out, err := runGitCommand("git", "rev-parse", "--show-toplevel")
out, err := runGitCommand("git", "--no-optional-locks", "rev-parse", "--show-toplevel")
if err != nil {
return []pwl.Segment{}
}
Expand All @@ -18,7 +18,7 @@ func segmentGitLite(p *powerline) []pwl.Segment {
}
}

out, err := runGitCommand("git", "rev-parse", "--abbrev-ref", "HEAD")
out, err := runGitCommand("git", "--no-optional-locks", "rev-parse", "--abbrev-ref", "HEAD")
if err != nil {
return []pwl.Segment{}
}
Expand Down

0 comments on commit b46d8a5

Please sign in to comment.