summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-04-30 13:50:27 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-04-30 13:50:27 +0900
commit5980e0d44258a6cccf1e5995947d4cba15145924 (patch)
tree8a8fab77e85eae241596a05e29830f94a229f9df
parentMerge branch 'hn/refs-trace-errno' (diff)
parentcompletion: avoid aliased command lookup error in nounset mode (diff)
downloadtgif-5980e0d44258a6cccf1e5995947d4cba15145924.tar.xz
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
-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 dfa735ea62..49e76e9d08 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