From: Alban Gruin Date: Fri, 10 Aug 2018 16:51:37 +0000 (+0200) Subject: t3404: todo list with commented-out commands only aborts X-Git-Tag: v2.20.0-rc0~94^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d078c39106895b26512ca6b259d66fe64b274e1b?ds=sidebyside t3404: todo list with commented-out commands only aborts If the todo list generated by `--make-script` is empty, complete_action() writes a noop, but if it has only commented-out commands, it will abort with the message "Nothing to do", and does not launch the editor. This adds a new test to ensure that complete_action() behaves this way. Signed-off-by: Alban Gruin Signed-off-by: Junio C Hamano --- diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh index d392160ba9..7755b68092 100755 --- a/t/t3404-rebase-interactive.sh +++ b/t/t3404-rebase-interactive.sh @@ -75,6 +75,16 @@ test_expect_success 'rebase --keep-empty' ' test_line_count = 6 actual ' +cat > expect <actual 2>&1 && + test_i18ncmp expect actual +' + test_expect_success 'rebase -i with the exec command' ' git checkout master && (