mirror of
https://github.com/git/git.git
synced 2024-05-05 02:26:14 +02:00
Merge branch 'vs/completion-with-set-u' into next
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
This commit is contained in:
commit
179933f961
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue