]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t9350-fast-export.sh
Sync with 2.35.5
[thirdparty/git.git] / t / t9350-fast-export.sh
index 7b7a18dd2c1e07afe2a129b868bf878020882a1f..ff21a12ee6e4eb1557eca22bb60ab2e01aa6b909 100755 (executable)
@@ -268,6 +268,7 @@ test_expect_success 'signed-tags=warn-strip' '
 
 test_expect_success 'setup submodule' '
 
+       test_config_global protocol.file.allow always &&
        git checkout -f main &&
        mkdir sub &&
        (
@@ -293,6 +294,7 @@ test_expect_success 'setup submodule' '
 
 test_expect_success 'submodule fast-export | fast-import' '
 
+       test_config_global protocol.file.allow always &&
        SUBENT1=$(git ls-tree main^ sub) &&
        SUBENT2=$(git ls-tree main sub) &&
        rm -rf new &&
@@ -500,6 +502,13 @@ test_expect_success 'path limiting with import-marks does not lose unmodified fi
        grep file0 actual
 '
 
+test_expect_success 'path limiting works' '
+       git fast-export simple -- file >actual &&
+       sed -ne "s/^M .* //p" <actual | sort -u >actual.files &&
+       echo file >expect &&
+       test_cmp expect actual.files
+'
+
 test_expect_success 'avoid corrupt stream with non-existent mark' '
        test_create_repo avoid_non_existent_mark &&
        (