X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5522-pull-symlink.sh;h=7206817ca1c7a450b47f9a1d7d8a3af53452dac6;hb=6a843348ab08e7c701ac2343ffbe2d11ecb7ebab;hp=86bbd7d024ff6b1ee775ec737c550d54f9371ad7;hpb=b30ccd757354ea09b41e4359b0a5ab429d12f02e;p=git.git diff --git a/t/t5522-pull-symlink.sh b/t/t5522-pull-symlink.sh index 86bbd7d02..7206817ca 100755 --- a/t/t5522-pull-symlink.sh +++ b/t/t5522-pull-symlink.sh @@ -20,13 +20,19 @@ fi # # The working directory is subdir-link. -mkdir subdir -echo file >subdir/file -git add subdir/file -git commit -q -m file -git clone -q . clone-repo -ln -s clone-repo/subdir/ subdir-link - +test_expect_success setup ' + mkdir subdir && + echo file >subdir/file && + git add subdir/file && + git commit -q -m file && + git clone -q . clone-repo && + ln -s clone-repo/subdir/ subdir-link && + ( + cd clone-repo && + git config receive.denyCurrentBranch warn + ) && + git config receive.denyCurrentBranch warn +' # Demonstrate that things work if we just avoid the symlink #