From: Sverre Rabbelier Date: Fri, 14 Aug 2009 05:05:49 GMT Subject: [RFC PATCH 2/2] test that git push --delete deletes the remote ref Message-ID: <1250226349-20397-3-git-send-email-srabbelier@gmail.com> In-Reply-To: <1250226349-20397-2-git-send-email-srabbelier@gmail.com> Signed-off-by: Sverre Rabbelier --- Not a lot of tests yet, but I suspect reviewers will ask for more and/or new features will pop up that need testing, hence a seperate patch with tests. t/t5516-fetch-push.sh | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh index 2d2633f..64da9a6 100755 --- a/t/t5516-fetch-push.sh +++ b/t/t5516-fetch-push.sh @@ -586,4 +586,10 @@ test_expect_success 'push with branches containing #' ' git checkout master ' +test_expect_success 'allow deleting a remote ref with --delete' ' + mk_test heads/master && + git push --delete testrepo refs/heads/master && + (cd testrepo && test_must_fail git rev-parse --verify refs/heads/master) +' + test_done -- 1.6.4.16.g72c66.dirty