revision.c: stricter parsing of '--early-output'
[gitweb.git] / git-rebase--interactive.sh
index 41fd374c725de1f42965b829c2bed5c48c92e19c..f5f58c483a5e229a6b62df6042fe42fb9d9de105 100644 (file)
@@ -425,7 +425,7 @@ update_squash_messages () {
        if test -f "$squash_msg"; then
                mv "$squash_msg" "$squash_msg".bak || exit
                count=$(($(sed -n \
-                       -e "1s/^$comment_char.*\([0-9][0-9]*\).*/\1/p" \
+                       -e "1s/^$comment_char[^0-9]*\([0-9][0-9]*\).*/\1/p" \
                        -e "q" < "$squash_msg".bak)+1))
                {
                        printf '%s\n' "$comment_char $(eval_ngettext \