]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5520: do not use `pull.rebase=preserve`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 7 Sep 2021 21:05:02 +0000 (21:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Sep 2021 04:45:32 +0000 (21:45 -0700)
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 <johannes.schindelin@gmx.de>
Reviewed-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5520-pull.sh

index e2c0c510222ddefb8dc28ee44b931fbdad7713dd..bb9b6b900eb26bd3dea04454a1f8692ea7941439 100755 (executable)
@@ -598,7 +598,7 @@ test_expect_success '--rebase=false create a new merge commit' '
 
 test_expect_success '--rebase=true rebases and flattens keep-merge' '
        git reset --hard before-preserve-rebase &&
-       test_config pull.rebase preserve &&
+       test_config pull.rebase merges &&
        git pull --rebase=true . copy &&
        test_cmp_rev HEAD^^ copy &&
        echo file3 >expect &&
@@ -620,9 +620,9 @@ test_expect_success '--rebase=invalid fails' '
        test_must_fail git pull --rebase=invalid . copy
 '
 
-test_expect_success '--rebase overrides pull.rebase=preserve and flattens keep-merge' '
+test_expect_success '--rebase overrides pull.rebase=merges and flattens keep-merge' '
        git reset --hard before-preserve-rebase &&
-       test_config pull.rebase preserve &&
+       test_config pull.rebase merges &&
        git pull --rebase . copy &&
        test_cmp_rev HEAD^^ copy &&
        echo file3 >expect &&