X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5701-clone-local.sh;h=19b5c0d552fa8b4665b5e396833264e258365b28;hb=d1f6c18bd6ea5fd373f9f6356e02854678ffa0fd;hp=3559d179647035a6ad8783aabfbecb8edcd4c254;hpb=763481787174adfcc247d6044bea330edcb2cc24;p=git.git diff --git a/t/t5701-clone-local.sh b/t/t5701-clone-local.sh index 3559d1796..19b5c0d55 100755 --- a/t/t5701-clone-local.sh +++ b/t/t5701-clone-local.sh @@ -132,4 +132,14 @@ test_expect_success 'clone empty repository' ' test $actual = $expected) ' +test_expect_success 'clone empty repository, and then push should not segfault.' ' + cd "$D" && + rm -fr empty/ empty-clone/ && + mkdir empty && + (cd empty && git init) && + git clone empty empty-clone && + (cd empty-clone && + test_must_fail git push) +' + test_done