rebase-interactive: suppress whitespace preceding item count
[gitweb.git] / git-rebase--interactive.sh
index c6a4629cbc2b69d3e6dfabe5e124384fe7fe611c..07512e45637c9b77cebc9a1474d7bde31d0d7205 100644 (file)
@@ -1032,6 +1032,7 @@ test -n "$autosquash" && rearrange_squash "$todo"
 test -n "$cmd" && add_exec_commands "$todo"
 
 todocount=$(git stripspace --strip-comments <"$todo" | wc -l)
+todocount=${todocount##* }
 
 cat >>"$todo" <<EOF