3 test_description='forced push to replace commit we do not have'
7 test_expect_success setup '
9 >file1 && git add file1 && test_tick &&
10 git commit -m Initial &&
11 git config receive.denyCurrentBranch warn &&
16 git fetch --update-head-ok .. master:master
19 >file2 && git add file2 && test_tick &&
24 test_expect_success 'non forced push should die not segfault' '
28 test_must_fail git push .. master:master
33 test_expect_success 'forced push should succeed' '
37 git push .. +master:master