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 9d4e633 + 13147c9 commit c28e933Copy full SHA for c28e933
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
@@ -548,7 +548,7 @@ __git_ps1 ()
548
u="%${ZSH_VERSION+%}"
549
550
551
- if [ -n "${GIT_PS1_COMPRESSSPARSESTATE}" ] &&
+ if [ -n "${GIT_PS1_COMPRESSSPARSESTATE-}" ] &&
552
553
h="?"
554
0 commit comments