We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc7a84c + f13b576 commit 28f30b6Copy full SHA for 28f30b6
contrib/completion/git-prompt.sh
@@ -433,8 +433,8 @@ __git_ps1 ()
433
fi
434
435
local sparse=""
436
- if [ -z "${GIT_PS1_COMPRESSSPARSESTATE}" ] &&
437
- [ -z "${GIT_PS1_OMITSPARSESTATE}" ] &&
+ if [ -z "${GIT_PS1_COMPRESSSPARSESTATE-}" ] &&
+ [ -z "${GIT_PS1_OMITSPARSESTATE-}" ] &&
438
[ "$(git config --bool core.sparseCheckout)" = "true" ]; then
439
sparse="|SPARSE"
440
@@ -543,7 +543,7 @@ __git_ps1 ()
543
u="%${ZSH_VERSION+%}"
544
545
546
- if [ -n "${GIT_PS1_COMPRESSSPARSESTATE}" ] &&
+ if [ -n "${GIT_PS1_COMPRESSSPARSESTATE-}" ] &&
547
548
h="?"
549
0 commit comments