Skip to content

Commit 3eedc98

Browse files
committed
Merge branch 'da/zsh-completion-fix-for-2.32' into next
Fix breakages to zsh completion script (in contrib/) due to recent update to the bash completion of the same. * da/zsh-completion-fix-for-2.32: contrib/completion: fix zsh completion regression from 59d85a2 Git 2.32-rc3
2 parents 51b09ce + 135ea5c commit 3eedc98

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

GIT-VERSION-GEN

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
GVF=GIT-VERSION-FILE
4-
DEF_VER=v2.32.0-rc2
4+
DEF_VER=v2.32.0-rc3
55

66
LF='
77
'

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ __git_count_arguments ()
13061306
local word i c=0
13071307

13081308
# Skip "git" (first argument)
1309-
for ((i="$__git_cmd_idx"; i < ${#words[@]}; i++)); do
1309+
for ((i=$__git_cmd_idx; i < ${#words[@]}; i++)); do
13101310
word="${words[i]}"
13111311

13121312
case "$word" in

contrib/completion/git-completion.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ __git_zsh_main ()
251251
done
252252
;;
253253
(arg)
254-
local command="${words[1]}" __git_dir
254+
local command="${words[1]}" __git_dir __git_cmd_idx=1
255255

256256
if (( $+opt_args[--bare] )); then
257257
__git_dir='.'

0 commit comments

Comments
 (0)