git-filter-branch: avoid collisions with variables in eval'ed commands
Avoid using simple variable names like 'i', since user commands are eval'ed and may clash with and overwrite our values. Signed-off-by: Elijah Newren <newren@gmail.com> Acked-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
8befac5d6f
commit
d5b0c97d13
@ -272,10 +272,10 @@ test $commits -eq 0 && die "Found nothing to rewrite"
|
|||||||
|
|
||||||
# Rewrite the commits
|
# Rewrite the commits
|
||||||
|
|
||||||
i=0
|
git_filter_branch__commit_count=0
|
||||||
while read commit parents; do
|
while read commit parents; do
|
||||||
i=$(($i+1))
|
git_filter_branch__commit_count=$(($git_filter_branch__commit_count+1))
|
||||||
printf "\rRewrite $commit ($i/$commits)"
|
printf "\rRewrite $commit ($git_filter_branch__commit_count/$commits)"
|
||||||
|
|
||||||
case "$filter_subdir" in
|
case "$filter_subdir" in
|
||||||
"")
|
"")
|
||||||
|
|||||||
Reference in New Issue
Block a user