@@ -1449,14 +1449,15 @@ test_expect_success 'rebase --edit-todo respects rebase.missingCommitsCheck = ig
14491449
14501450test_expect_success ' rebase --edit-todo respects rebase.missingCommitsCheck = warn' '
14511451 cat >expect <<-EOF &&
1452- error: invalid line 1: badcmd $(git rev-list --pretty=oneline --abbrev-commit -1 primary~4)
1452+ error: invalid command ' \' ' pickled' \' '
1453+ error: invalid line 1: pickled $(git rev-list --pretty=oneline --abbrev-commit -1 primary~4)
14531454 Warning: some commits may have been dropped accidentally.
14541455 Dropped commits (newer to older):
14551456 - $(git rev-list --pretty=oneline --abbrev-commit -1 primary)
14561457 - $(git rev-list --pretty=oneline --abbrev-commit -1 primary~4)
14571458 To avoid this message, use "drop" to explicitly remove a commit.
14581459 EOF
1459- head -n4 expect >expect.2 &&
1460+ head -n5 expect >expect.2 &&
14601461 tail -n1 expect >>expect.2 &&
14611462 tail -n4 expect.2 >expect.3 &&
14621463 test_config rebase.missingCommitsCheck warn &&
@@ -1467,7 +1468,7 @@ test_expect_success 'rebase --edit-todo respects rebase.missingCommitsCheck = wa
14671468 git rebase -i --root &&
14681469 cp .git/rebase-merge/git-rebase-todo.backup orig &&
14691470 FAKE_LINES="2 3 4" git rebase --edit-todo 2>actual.2 &&
1470- head -n6 actual.2 >actual &&
1471+ head -n7 actual.2 >actual &&
14711472 test_cmp expect actual &&
14721473 cp orig .git/rebase-merge/git-rebase-todo &&
14731474 FAKE_LINES="1 2 3 4" git rebase --edit-todo 2>actual.2 &&
@@ -1483,7 +1484,8 @@ test_expect_success 'rebase --edit-todo respects rebase.missingCommitsCheck = wa
14831484
14841485test_expect_success ' rebase --edit-todo respects rebase.missingCommitsCheck = error' '
14851486 cat >expect <<-EOF &&
1486- error: invalid line 1: badcmd $(git rev-list --pretty=oneline --abbrev-commit -1 primary~4)
1487+ error: invalid command ' \' ' pickled' \' '
1488+ error: invalid line 1: pickled $(git rev-list --pretty=oneline --abbrev-commit -1 primary~4)
14871489 Warning: some commits may have been dropped accidentally.
14881490 Dropped commits (newer to older):
14891491 - $(git rev-list --pretty=oneline --abbrev-commit -1 primary)
@@ -1583,7 +1585,7 @@ test_expect_success 'static check of bad command' '
15831585 set_fake_editor &&
15841586 test_must_fail env FAKE_LINES="1 2 3 bad 4 5" \
15851587 git rebase -i --root 2>actual &&
1586- test_i18ngrep "badcmd $(git rev-list --oneline -1 primary~1)" \
1588+ test_i18ngrep "pickled $(git rev-list --oneline -1 primary~1)" \
15871589 actual &&
15881590 test_i18ngrep "You can fix this with .git rebase --edit-todo.." \
15891591 actual &&
0 commit comments