summaryrefslogtreecommitdiff
path: root/t/t5801-remote-helpers.sh
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2014-04-20 13:59:26 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-04-21 11:47:33 -0700
commit9193f742350d1b97e32b0687d1577dc2b2a0d713 (patch)
treead7f147dc27861e5d0d56ff3c3047f1976d46fd5 /t/t5801-remote-helpers.sh
parenttransport-helper: add support for old:new refspec (diff)
downloadtgif-9193f742350d1b97e32b0687d1577dc2b2a0d713.tar.xz
transport-helper: add support to push symbolic refs
For example 'HEAD'. 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 52b3c99478..828866930d 100755
--- a/t/t5801-remote-helpers.sh
+++ b/t/t5801-remote-helpers.sh
@@ -94,6 +94,14 @@ test_expect_success 'push new branch with old:new refspec' '
compare_refs local HEAD server refs/heads/new-refspec
'
+test_expect_success 'push new branch with HEAD:new refspec' '
+ (cd local &&
+ git checkout new-name
+ git push origin HEAD:new-refspec-2
+ ) &&
+ compare_refs local HEAD server refs/heads/new-refspec-2
+'
+
test_expect_success 'forced push' '
(cd local &&
git checkout -b force-test &&