t5516: Check pushurl config setting
Check whether the new remote.${remotename}.pushurl setting is obeyed and whether it overrides remote.${remotename}.url. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael J Gruber committed
Jun 9, 2009 at 18:01 UTC
e1ca424112d5e8923a4a83af0f79eadbff088b69
1 file changed
+13
t/t5516-fetch-push.sh
+13
@@ -419,6 +419,19 @@ test_expect_success 'push with config remote.*.push = HEAD' '
419
git config --remove-section remote.there
420
git config --remove-section branch.master
421
422
+test_expect_success 'push with config remote.*.pushurl' '
423
+
424
+ mk_test heads/master &&
425
+ git checkout master &&
426
+ git config remote.there.url test2repo &&
427
+ git config remote.there.pushurl testrepo &&
428
+ git push there &&
429
+ check_push_result $the_commit heads/master
430
+'
431
+
432
+# clean up the cruft left with the previous one
433
+git config --remove-section remote.there
434
+
435
test_expect_success 'push with dry-run' '
436
437
mk_test heads/master &&