Skip to content

Commit e66e8f9

Browse files
committed
Merge branch 'bc/t3430-fixup'
Test fix. * bc/t3430-fixup: t3430: test clean-up
2 parents 01cbd9e + 0c5a779 commit e66e8f9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

t/t3430-rebase-merges.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ test_expect_success 'create completely different structure' '
7070
merge -C H second
7171
merge onebranch # Merge the topic branch '\''onebranch'\''
7272
EOF
73-
cp script-from-scratch script-from-scratch-orig &&
7473
test_config sequence.editor \""$PWD"/replace-editor.sh\" &&
7574
test_tick &&
7675
git rebase -i -r A &&
@@ -316,17 +315,17 @@ test_expect_success 'A root commit can be a cousin, treat it that way' '
316315

317316
test_expect_success 'labels that are object IDs are rewritten' '
318317
git checkout -b third B &&
319-
test_tick &&
320318
test_commit I &&
321319
third=$(git rev-parse HEAD) &&
322320
git checkout -b labels master &&
323321
git merge --no-commit third &&
324322
test_tick &&
325323
git commit -m "Merge commit '\''$third'\'' into labels" &&
326-
cp script-from-scratch-orig script-from-scratch &&
324+
echo noop >script-from-scratch &&
327325
test_config sequence.editor \""$PWD"/replace-editor.sh\" &&
328326
test_tick &&
329327
git rebase -i -r A &&
328+
grep "^label $third-" .git/ORIGINAL-TODO &&
330329
! grep "^label $third$" .git/ORIGINAL-TODO
331330
'
332331

0 commit comments

Comments
 (0)