Skip to content

Commit

Permalink
Use GIT_OPTIONAL_LOCKS=0 instead of --no-optional-locks (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
mafredri authored Sep 27, 2020
1 parent 7cc22a4 commit 7924d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pure.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ prompt_pure_async_git_dirty() {
if [[ $untracked_dirty = 0 ]]; then
command git diff --no-ext-diff --quiet --exit-code
else
test -z "$(command git --no-optional-locks status --porcelain --ignore-submodules -u${untracked_git_mode})"
test -z "$(GIT_OPTIONAL_LOCKS=0 command git status --porcelain --ignore-submodules -u${untracked_git_mode})"
fi

return $?
Expand Down

0 comments on commit 7924d09

Please sign in to comment.