]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t2025-worktree-add.sh
clone: support 'clone --shared' from a worktree
[thirdparty/git.git] / t / t2025-worktree-add.sh
index 369417498946fcebb901d8593bb584f3767b1e67..8f3e726d351b37fdd4f6e1cb9cb1d2f6a9400ea6 100755 (executable)
@@ -198,4 +198,10 @@ test_expect_success 'local clone from linked checkout' '
        ( cd here-clone && git fsck )
 '
 
+test_expect_success 'local clone --shared from linked checkout' '
+       git -C bare worktree add --detach ../baretree &&
+       git clone --local --shared baretree bare-clone &&
+       grep /bare/ bare-clone/.git/objects/info/alternates
+'
+
 test_done