aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-11-26 22:51:17 -0800
committerJunio C Hamano <junkio@cox.net>2006-11-26 22:51:17 -0800
commita22f5427001abb71d0aeeac33a0a82ab48a8de45 (patch)
tree178925767cf979316345258953a23eee1efffd6c /t
parent88ffc1f28a8b86969c7cbc54b0e3279d8cfe90a8 (diff)
parentd4f694ba89857a87e259557d0f236c761b4041ef (diff)
downloadgit-a22f5427001abb71d0aeeac33a0a82ab48a8de45.tar.gz
git-a22f5427001abb71d0aeeac33a0a82ab48a8de45.tar.xz
Merge branch 'jc/push-delete-ref'
* jc/push-delete-ref: Allow git push to delete remote ref.
Diffstat (limited to 't')
-rwxr-xr-xt/t5400-send-pack.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh
index 8afb89971..28744b35e 100755
--- a/t/t5400-send-pack.sh
+++ b/t/t5400-send-pack.sh
@@ -64,6 +64,16 @@ test_expect_success \
cmp victim/.git/refs/heads/master .git/refs/heads/master
'
+test_expect_success \
+ 'push can be used to delete a ref' '
+ cd victim &&
+ git branch extra master &&
+ cd .. &&
+ test -f victim/.git/refs/heads/extra &&
+ git-send-pack ./victim/.git/ :extra master &&
+ ! test -f victim/.git/refs/heads/extra
+'
+
unset GIT_CONFIG GIT_CONFIG_LOCAL
HOME=`pwd`/no-such-directory
export HOME ;# this way we force the victim/.git/config to be used.