Skip to content

Commit f927ae6

Browse files
dschogitster
authored andcommitted
tests (rebase): spell out the --force-rebase option
In quite a few test cases, we were sloppy and used the abbreviation `--force`, but we really should be precise in what we want to test. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dd605e4 commit f927ae6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

t/t3415-rebase-autosquash.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ test_expect_success 'autosquash with empty custom instructionFormat' '
277277
(
278278
set_cat_todo_editor &&
279279
test_must_fail git -c rebase.instructionFormat= \
280-
rebase --autosquash --force -i HEAD^ >actual &&
280+
rebase --autosquash --force-rebase -i HEAD^ >actual &&
281281
git log -1 --format="pick %h %s" >expect &&
282282
test_cmp expect actual
283283
)

t/t3430-rebase-merges.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ test_expect_success 'root commits' '
271271
EOF
272272
test_config sequence.editor \""$PWD"/replace-editor.sh\" &&
273273
test_tick &&
274-
git rebase -i --force --root -r &&
274+
git rebase -i --force-rebase --root -r &&
275275
test "Parsnip" = "$(git show -s --format=%an HEAD^)" &&
276276
test $(git rev-parse second-root^0) != $(git rev-parse HEAD^) &&
277277
test $(git rev-parse second-root:second-root.t) = \
@@ -364,7 +364,7 @@ test_expect_success 'octopus merges' '
364364
test_cmp_rev HEAD $before &&
365365
366366
test_tick &&
367-
git rebase -i --force -r HEAD^^ &&
367+
git rebase -i --force-rebase -r HEAD^^ &&
368368
test "Hank" = "$(git show -s --format=%an HEAD)" &&
369369
test "$before" != $(git rev-parse HEAD) &&
370370
test_cmp_graph HEAD^^.. <<-\EOF

0 commit comments

Comments
 (0)