diff options
author | Ted Pavlic <ted@tedpavlic.com> | 2009-02-06 19:05:37 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-09 09:07:46 +0300 |
commit | cf9957875c3a27b6ae4593e1fa9d4dabbde68433 (patch) | |
tree | 5f8c1047db09d09051f33785d761e7e57346ddf0 /contrib | |
parent | ffe4da1573835806f1c931fc204264f76618aae2 (diff) |
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-x | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 307bf5d4f9..6e04985079 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="*" |