git-sh-prompt: bash: GIT_PS1_COMPRESSSPARSESTATE: unbound variable

From: Christoph Anton Mitterer <hidden>
Date: 2021-05-13 03:38:34

Hey there.

Could it be that git-sh-prompt no longer works properly?

With git 2.31.1:
$ . /usr/lib/git-core/git-sh-prompt
$ PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
$ cd someGitRepo
bash: GIT_PS1_COMPRESSSPARSESTATE: unbound variable
$ 


Cheers,
Chris.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help