Skip to content

Commit 0c5a779

Browse files
bk2204gitster
authored andcommitted
t3430: test clean-up
Remove unnecessary test_tick etc... Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5971b08 commit 0c5a779

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 &&
@@ -244,17 +243,17 @@ test_expect_success 'refuse to merge ancestors of HEAD' '
244243

245244
test_expect_success 'labels that are object IDs are rewritten' '
246245
git checkout -b third B &&
247-
test_tick &&
248246
test_commit I &&
249247
third=$(git rev-parse HEAD) &&
250248
git checkout -b labels master &&
251249
git merge --no-commit third &&
252250
test_tick &&
253251
git commit -m "Merge commit '\''$third'\'' into labels" &&
254-
cp script-from-scratch-orig script-from-scratch &&
252+
echo noop >script-from-scratch &&
255253
test_config sequence.editor \""$PWD"/replace-editor.sh\" &&
256254
test_tick &&
257255
git rebase -i -r A &&
256+
grep "^label $third-" .git/ORIGINAL-TODO &&
258257
! grep "^label $third$" .git/ORIGINAL-TODO
259258
'
260259

0 commit comments

Comments
 (0)