aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-02-21 15:18:00 -0800
committerJunio C Hamano <gitster@pobox.com>2012-02-21 15:18:00 -0800
commit887c409a7abf4525776ddea62077a2ccc48031ec (patch)
treea3028f64534fc1d4c1ad60136aa9abd2b33d6c0e /contrib
parentb3a769dc355b32c95783dc07f59e4dfebdd8bdc7 (diff)
parent72d5e74e991937e24afb943eee74ca929e7f00ab (diff)
downloadgit-887c409a7abf4525776ddea62077a2ccc48031ec.tar.gz
git-887c409a7abf4525776ddea62077a2ccc48031ec.tar.xz
Merge branch 'maint'
* maint: Update draft release notes to 1.7.9.2 completion: Allow dash as the first character for __git_ps1
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 1505cff12..ab2431056 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -313,7 +313,7 @@ __git_ps1 ()
fi
local f="$w$i$s$u"
- printf "${1:- (%s)}" "$c${b##refs/heads/}${f:+ $f}$r$p"
+ printf -- "${1:- (%s)}" "$c${b##refs/heads/}${f:+ $f}$r$p"
fi
}