]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5537-fetch-shallow.sh
shallow: reset commit grafts when shallow is reset
[thirdparty/git.git] / t / t5537-fetch-shallow.sh
index 11d5ea54a9c621eed86d3a7d2e5a6c40da162ee8..92948de7a0083be93284de46dfb90c75cd0e1e2b 100755 (executable)
@@ -161,6 +161,15 @@ test_expect_success 'fetch --update-shallow' '
        )
 '
 
+test_expect_success 'fetch --update-shallow into a repo with submodules' '
+       git init a-submodule &&
+       test_commit -C a-submodule foo &&
+       git init repo-with-sub &&
+       git -C repo-with-sub submodule add ../a-submodule a-submodule &&
+       git -C repo-with-sub commit -m "added submodule" &&
+       git -C repo-with-sub fetch --update-shallow ../shallow/.git refs/heads/*:refs/remotes/shallow/*
+'
+
 test_expect_success 'fetch --update-shallow (with fetch.writeCommitGraph)' '
        (
        cd shallow &&