Skip to content

Commit 5980e0d

Browse files
committed
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
2 parents bf0d4c8 + 76655e8 commit 5980e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ __git_pretty_aliases ()
11291129
# __git_aliased_command requires 1 argument
11301130
__git_aliased_command ()
11311131
{
1132-
local cur=$1 last list word cmdline
1132+
local cur=$1 last list= word cmdline
11331133

11341134
while [[ -n "$cur" ]]; do
11351135
if [[ "$list" == *" $cur "* ]]; then

0 commit comments

Comments
 (0)