Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Pavlic <ted@tedpavlic.com>2009-02-06 19:05:37 +0300
committerJunio C Hamano <gitster@pobox.com>2009-02-09 09:07:46 +0300
commitcf9957875c3a27b6ae4593e1fa9d4dabbde68433 (patch)
tree5f8c1047db09d09051f33785d761e7e57346ddf0 /contrib
parentffe4da1573835806f1c931fc204264f76618aae2 (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-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 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="*"