1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

42323: _git: move "local" statement out of loop

Fixup for 99cf61fd4.
This commit is contained in:
Daniel Hahler 2018-01-24 21:41:11 +01:00
parent 758966502c
commit 2870302afa

View file

@ -7760,14 +7760,14 @@ _git() {
declare -gUa _git_third_party_commands declare -gUa _git_third_party_commands
_git_third_party_commands=() _git_third_party_commands=()
local file local file input
for file in ${^fpath}/_git-*~(*~|*.zwc)(-.N); do for file in ${^fpath}/_git-*~(*~|*.zwc)(-.N); do
local name=${${file:t}#_git-} local name=${${file:t}#_git-}
if (( $+_git_third_party_commands[$name] )); then if (( $+_git_third_party_commands[$name] )); then
continue continue
fi fi
local desc= input local desc=
integer i=1 integer i=1
while read input; do while read input; do
if (( i == 2 )); then if (( i == 2 )); then