aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTed Pavlic <ted@tedpavlic.com>2009-02-06 11:05:37 -0500
committerJunio C Hamano <gitster@pobox.com>2009-02-08 22:07:46 -0800
commitcf9957875c3a27b6ae4593e1fa9d4dabbde68433 (patch)
tree5f8c1047db09d09051f33785d761e7e57346ddf0 /contrib
parentffe4da1573835806f1c931fc204264f76618aae2 (diff)
downloadgit-cf9957875c3a27b6ae4593e1fa9d4dabbde68433.tar.gz
git-cf9957875c3a27b6ae4593e1fa9d4dabbde68433.tar.xz
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 307bf5d4f..6e0498507 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -125,7 +125,7 @@ __git_ps1 ()
local w
local i
- if test -n "$GIT_PS1_SHOWDIRTYSTATE"; then
+ if test -n "${GIT_PS1_SHOWDIRTYSTATE-}"; then
if test "$(git config --bool bash.showDirtyState)" != "false"; then
git diff --no-ext-diff --ignore-submodules \
--quiet --exit-code || w="*"