зеркало из https://github.com/microsoft/git.git
filter-branch: use $(($i+1)) instead of $((i+1))
The expression $((i+1)) is not portable at all: even some bash versions do not grok it. So do not use it. Noticed by Jonas Fonseca. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
d674ee4cfc
Коммит
c12764b8b7
|
@ -339,7 +339,7 @@ test $commits -eq 0 && die "Found nothing to rewrite"
|
|||
|
||||
i=0
|
||||
while read commit; do
|
||||
i=$((i+1))
|
||||
i=$(($i+1))
|
||||
printf "$commit ($i/$commits) "
|
||||
|
||||
git-read-tree -i -m $commit
|
||||
|
|
Загрузка…
Ссылка в новой задаче