summaryrefslogtreecommitdiff
path: root/t/t5801-remote-helpers.sh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2014-04-20 18:59:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-04-21 18:47:34 (GMT)
commitf3d0376356756c55a85a3d745858a42c26956e74 (patch)
tree35a2238556cb99d2a1f43d30f8dafe4ba3b6a72d /t/t5801-remote-helpers.sh
parent60ed26438c909fd273528e67b399ee6ca4028e1e (diff)
downloadgit-f3d0376356756c55a85a3d745858a42c26956e74.zip
git-f3d0376356756c55a85a3d745858a42c26956e74.tar.gz
git-f3d0376356756c55a85a3d745858a42c26956e74.tar.bz2
transport-helper: add support to delete branches
For remote-helpers that use 'export' to push. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5801-remote-helpers.sh')
-rwxr-xr-xt/t5801-remote-helpers.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t5801-remote-helpers.sh b/t/t5801-remote-helpers.sh
index 8288669..aec924b 100755
--- a/t/t5801-remote-helpers.sh
+++ b/t/t5801-remote-helpers.sh
@@ -102,6 +102,14 @@ test_expect_success 'push new branch with HEAD:new refspec' '
compare_refs local HEAD server refs/heads/new-refspec-2
'
+test_expect_success 'push delete branch' '
+ (cd local &&
+ git push origin :new-name
+ ) &&
+ test_must_fail git --git-dir="server/.git" \
+ rev-parse --verify refs/heads/new-name
+'
+
test_expect_success 'forced push' '
(cd local &&
git checkout -b force-test &&