diff options
author | Ted Pavlic <ted@tedpavlic.com> | 2009-02-06 11:05:37 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-08 22:07:46 -0800 |
commit | cf9957875c3a27b6ae4593e1fa9d4dabbde68433 (patch) | |
tree | 5f8c1047db09d09051f33785d761e7e57346ddf0 /contrib | |
parent | doc/bundle: Use the more conventional suffix '.bundle' (diff) | |
download | tgif-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-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="*" |