Skip to content

Commit 6df8755

Browse files
dschogitster
authored andcommitted
t5520: do not use pull.rebase=preserve
Even if those tests try to override that setting, let's not use it because it is deprecated: let's use `merges` instead. Signed-off-by: Johannes Schindelin <[email protected]> Reviewed-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 225bc32 commit 6df8755

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t5520-pull.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ test_expect_success '--rebase=false create a new merge commit' '
598598

599599
test_expect_success '--rebase=true rebases and flattens keep-merge' '
600600
git reset --hard before-preserve-rebase &&
601-
test_config pull.rebase preserve &&
601+
test_config pull.rebase merges &&
602602
git pull --rebase=true . copy &&
603603
test_cmp_rev HEAD^^ copy &&
604604
echo file3 >expect &&
@@ -620,9 +620,9 @@ test_expect_success '--rebase=invalid fails' '
620620
test_must_fail git pull --rebase=invalid . copy
621621
'
622622

623-
test_expect_success '--rebase overrides pull.rebase=preserve and flattens keep-merge' '
623+
test_expect_success '--rebase overrides pull.rebase=merges and flattens keep-merge' '
624624
git reset --hard before-preserve-rebase &&
625-
test_config pull.rebase preserve &&
625+
test_config pull.rebase merges &&
626626
git pull --rebase . copy &&
627627
test_cmp_rev HEAD^^ copy &&
628628
echo file3 >expect &&

0 commit comments

Comments
 (0)