Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-06-06 19:24:07 +0400
committerJunio C Hamano <gitster@pobox.com>2007-06-06 23:31:56 +0400
commitc12764b8b7e004f84b1e685b76f2d662bee8e196 (patch)
tree5b5e2ea7322c8598ca596cfda0e43fcedb80402c /git-filter-branch.sh
parentd674ee4cfcfc15cdee07c49d7f36656fe6c3e14d (diff)
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>
Diffstat (limited to 'git-filter-branch.sh')
-rwxr-xr-xgit-filter-branch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 73e7c01009..2929925a0e 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -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