From f3d2b6e69a845836d07d985055063af19f4833ca Mon Sep 17 00:00:00 2001 From: Peter Aronoff Date: Fri, 22 Dec 2023 21:51:16 -0500 Subject: [PATCH] chore: --no-optional-locks > GIT_OPTIONAL_LOCKS=0 --- git-prompt.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-prompt.zsh b/git-prompt.zsh index 9bc7e61..09cddaf 100644 --- a/git-prompt.zsh +++ b/git-prompt.zsh @@ -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" \