Re: git-sh-prompt: bash: GIT_PS1_COMPRESSSPARSESTATE: unbound variable
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 13, 2021, 04:03 UTC
- Message-ID
- <xmqq4kf7cmaj.fsf@gitster.g>
- In-Reply-To
- <f1fc174b10ca5bc8b54ede513bc79e3864d8e014.camel@scientia.net>
Christoph Anton Mitterer <calestyo@scientia.net> writes:
Show 8 quoted lines
> 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 > $
Would
$ set +u
fix it, I have to wonder?