X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5701-clone-local.sh;h=59a165a6d44190a1ce9ef9575dc6c8a2ce9f4efb;hb=059f13045aab9e22a3db2d53ee6abe4a08c4582c;hp=822ac8c28e112dc1da61cb7fecdab1b4f25717ec;hpb=887ad79865d862a0a3aef4b59957d7dd95d0507d;p=git.git diff --git a/t/t5701-clone-local.sh b/t/t5701-clone-local.sh index 822ac8c28..59a165a6d 100755 --- a/t/t5701-clone-local.sh +++ b/t/t5701-clone-local.sh @@ -63,4 +63,12 @@ test_expect_success 'Even without -l, local will make a hardlink' ' test 0 = $copied ' +test_expect_success 'local clone of repo with nonexistent ref in HEAD' ' + cd "$D" && + echo "ref: refs/heads/nonexistent" > a.git/HEAD && + git clone a d && + cd d && + git fetch && + test ! -e .git/refs/remotes/origin/HEAD' + test_done