diff --git a/t/t5701-clone-local.sh b/t/t5701-clone-local.sh index f26b511c3e..19b5c0d552 100755 --- a/t/t5701-clone-local.sh +++ b/t/t5701-clone-local.sh @@ -138,8 +138,8 @@ test_expect_success 'clone empty repository, and then push should not segfault.' mkdir empty && (cd empty && git init) && git clone empty empty-clone && - cd empty-clone && - test_must_fail git push + (cd empty-clone && + test_must_fail git push) ' test_done