rebase-interactive: trim leading whitespace from progress count
[gitweb.git] / git-rebase--interactive.sh
index 078ca5b2d56ba5987c7d69df535f4dd9bbb769de..44ba3d30e271fe92a5a749612c722a8cbc5618c0 100644 (file)
@@ -121,7 +121,7 @@ mark_action_done () {
        sed -e 1q < "$todo" >> "$done"
        sed -e 1d < "$todo" >> "$todo".new
        mv -f "$todo".new "$todo"
-       new_count=$(git stripspace --strip-comments <"$done" | wc -l)
+       new_count=$(( $(git stripspace --strip-comments <"$done" | wc -l) ))
        echo $new_count >"$msgnum"
        total=$(($new_count + $(git stripspace --strip-comments <"$todo" | wc -l)))
        echo $total >"$end"