summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-04-30 04:50:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-04-30 04:50:27 (GMT)
commit5980e0d44258a6cccf1e5995947d4cba15145924 (patch)
tree8a8fab77e85eae241596a05e29830f94a229f9df /contrib/completion
parentbf0d4c84917025652e4ecf401ec55d130ad6f5a6 (diff)
parent76655e8a28d35c7243fa8f138c90a123aa32357f (diff)
downloadgit-5980e0d44258a6cccf1e5995947d4cba15145924.zip
git-5980e0d44258a6cccf1e5995947d4cba15145924.tar.gz
git-5980e0d44258a6cccf1e5995947d4cba15145924.tar.bz2
Merge branch 'vs/completion-with-set-u'
Effort to make the command line completion (in contrib/) safe with "set -u" continues. * vs/completion-with-set-u: completion: avoid aliased command lookup error in nounset mode
Diffstat (limited to 'contrib/completion')
-rw-r--r--contrib/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 dfa735e..49e76e9 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1129,7 +1129,7 @@ __git_pretty_aliases ()
# __git_aliased_command requires 1 argument
__git_aliased_command ()
{
- local cur=$1 last list word cmdline
+ local cur=$1 last list= word cmdline
while [[ -n "$cur" ]]; do
if [[ "$list" == *" $cur "* ]]; then