From: Junio C Hamano Date: Wed, 3 Apr 2013 16:34:48 +0000 (-0700) Subject: Merge branch 'jc/t5516-pushInsteadOf-vs-pushURL' X-Git-Tag: v1.8.3-rc0~119 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/41ae34d136e623cb4a6c6096d905dc648daabfb9?hp=e3b1173fb1233197fcaabbce84b9a0f33d24d09b Merge branch 'jc/t5516-pushInsteadOf-vs-pushURL' Update a test to match the documented interaction between pushURL and pushInsteadOf. * jc/t5516-pushInsteadOf-vs-pushURL: t5516: test interaction between pushURL and pushInsteadOf correctly --- diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh index 383a2eb1ea..32ad89107b 100755 --- a/t/t5516-fetch-push.sh +++ b/t/t5516-fetch-push.sh @@ -217,10 +217,10 @@ test_expect_success 'push with pushInsteadOf' ' test_expect_success 'push with pushInsteadOf and explicit pushurl (pushInsteadOf should not rewrite)' ' mk_empty && - TRASH="$(pwd)/" && - test_config "url.trash2/.pushInsteadOf" trash/ && + test_config "url.trash2/.pushInsteadOf" testrepo/ && + test_config "url.trash3/.pusnInsteadOf" trash/wrong && test_config remote.r.url trash/wrong && - test_config remote.r.pushurl "$TRASH/testrepo" && + test_config remote.r.pushurl "testrepo/" && git push r refs/heads/master:refs/remotes/origin/master && ( cd testrepo &&