Skip to content

Commit

Permalink
chore: --no-optional-locks > GIT_OPTIONAL_LOCKS=0
Browse files Browse the repository at this point in the history
  • Loading branch information
telemachus committed Dec 23, 2023
1 parent 4c16512 commit f3d2b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-prompt.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ setopt PROMPT_SUBST
function _zsh_git_prompt_git_status() {
emulate -L zsh
{
GIT_OPTIONAL_LOCKS=0 command git status --branch --porcelain=v2 \
command git --no-optional-locks status --branch --porcelain=v2 \
--show-stash 2>&1 || echo "fatal: git command failed"
} | $ZSH_GIT_PROMPT_AWK_CMD \
-v SHOW_UPSTREAM_NAME="$ZSH_GIT_PROMPT_SHOW_UPSTREAM_NAME" \
Expand Down

0 comments on commit f3d2b6e

Please sign in to comment.