From e9a98b12b59d1f5f21446029a2d8bbf67643c214 Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Fri, 15 Jul 2011 21:55:01 +0200 Subject: [PATCH] t5800: point out that deleting branches does not work This test actually breaks the repositories involved somehow, so it is not enabled by default. --- t/t5800-remote-helpers.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/t/t5800-remote-helpers.sh b/t/t5800-remote-helpers.sh index b97c130af0..737b7c8a42 100755 --- a/t/t5800-remote-helpers.sh +++ b/t/t5800-remote-helpers.sh @@ -138,7 +138,7 @@ test_expect_success 'push new branch by name' ' compare_refs clone HEAD server refs/heads/new-name ' -test_expect_failure 'push new branch with old content' ' +test_expect_success 'push new branch with old content' ' (cd clone && git checkout -b existing && git push origin existing @@ -146,6 +146,17 @@ test_expect_failure 'push new branch with old content' ' compare_refs clone refs/heads/existing server refs/heads/existing ' +test_expect_failure BROKEN 'delete branch' ' + (cd clone && + git checkout -b delete-me && + echo content >>file && + git commit -a -m eight && + git push origin delete-me + git push origin :delete-me) && + test_must_fail git --git-dir="server/.git" rev-parse --verify delete-me +' + + test_expect_failure 'push new branch with old:new refspec' ' (cd clone && git push origin new-name:new-refspec -- 2.11.4.GIT