We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f2bcbb0 + aa5502e commit 40964beCopy full SHA for 40964be
contrib/completion/git-prompt.sh
@@ -431,8 +431,8 @@ __git_ps1 ()
431
fi
432
433
local sparse=""
434
- if [ -z "${GIT_PS1_COMPRESSSPARSESTATE}" ] &&
435
- [ -z "${GIT_PS1_OMITSPARSESTATE}" ] &&
+ if [ -z "${GIT_PS1_COMPRESSSPARSESTATE-}" ] &&
+ [ -z "${GIT_PS1_OMITSPARSESTATE-}" ] &&
436
[ "$(git config --bool core.sparseCheckout)" = "true" ]; then
437
sparse="|SPARSE"
438
@@ -541,7 +541,7 @@ __git_ps1 ()
541
u="%${ZSH_VERSION+%}"
542
543
544
- if [ -n "${GIT_PS1_COMPRESSSPARSESTATE}" ] &&
+ if [ -n "${GIT_PS1_COMPRESSSPARSESTATE-}" ] &&
545
546
h="?"
547
0 commit comments