@matheusbsbs / matheus-bagliano / commits / cf9957875c
Fork 0

completion: Fix GIT_PS1_SHOWDIRTYSTATE to prevent unbound variable errors.

Signed-off-by: Ted Pavlic <ted@tedpavlic.com> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ted Pavlic committed Feb 6, 2009 at 11:05 UTC cf9957875c3a27b6ae4593e1fa9d4dabbde68433
1 file changed +1 -1
contrib/completion/git-completion.bash
+1 -1
@@ -125,7 +125,7 @@ __git_ps1 ()
125 local w
126 local i
127
128 - if test -n "$GIT_PS1_SHOWDIRTYSTATE"; then
128 + if test -n "${GIT_PS1_SHOWDIRTYSTATE-}"; then
129 if test "$(git config --bool bash.showDirtyState)" != "false"; then
130 git diff --no-ext-diff --ignore-submodules \
131 --quiet --exit-code || w="*"