@@ -1449,14 +1449,15 @@ test_expect_success 'rebase --edit-todo respects rebase.missingCommitsCheck = ig
1449
1449
1450
1450
test_expect_success ' rebase --edit-todo respects rebase.missingCommitsCheck = warn' '
1451
1451
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)
1453
1454
Warning: some commits may have been dropped accidentally.
1454
1455
Dropped commits (newer to older):
1455
1456
- $(git rev-list --pretty=oneline --abbrev-commit -1 primary)
1456
1457
- $(git rev-list --pretty=oneline --abbrev-commit -1 primary~4)
1457
1458
To avoid this message, use "drop" to explicitly remove a commit.
1458
1459
EOF
1459
- head -n4 expect >expect.2 &&
1460
+ head -n5 expect >expect.2 &&
1460
1461
tail -n1 expect >>expect.2 &&
1461
1462
tail -n4 expect.2 >expect.3 &&
1462
1463
test_config rebase.missingCommitsCheck warn &&
@@ -1467,7 +1468,7 @@ test_expect_success 'rebase --edit-todo respects rebase.missingCommitsCheck = wa
1467
1468
git rebase -i --root &&
1468
1469
cp .git/rebase-merge/git-rebase-todo.backup orig &&
1469
1470
FAKE_LINES="2 3 4" git rebase --edit-todo 2>actual.2 &&
1470
- head -n6 actual.2 >actual &&
1471
+ head -n7 actual.2 >actual &&
1471
1472
test_cmp expect actual &&
1472
1473
cp orig .git/rebase-merge/git-rebase-todo &&
1473
1474
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
1483
1484
1484
1485
test_expect_success ' rebase --edit-todo respects rebase.missingCommitsCheck = error' '
1485
1486
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)
1487
1489
Warning: some commits may have been dropped accidentally.
1488
1490
Dropped commits (newer to older):
1489
1491
- $(git rev-list --pretty=oneline --abbrev-commit -1 primary)
@@ -1583,7 +1585,7 @@ test_expect_success 'static check of bad command' '
1583
1585
set_fake_editor &&
1584
1586
test_must_fail env FAKE_LINES="1 2 3 bad 4 5" \
1585
1587
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)" \
1587
1589
actual &&
1588
1590
test_i18ngrep "You can fix this with .git rebase --edit-todo.." \
1589
1591
actual &&
0 commit comments