test_expect_success 'clone empty repository' '
cd "$D" &&
mkdir empty &&
- (cd empty && git init) &&
+ (cd empty &&
+ git init &&
+ git config receive.denyCurrentBranch warn) &&
git clone empty empty-clone &&
test_tick &&
(cd empty-clone
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