X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5516-fetch-push.sh;h=2d2633f3f8784565faf5db84c6efe12d9c405013;hb=106a36509dc78e32e0b0e64c8da12ace639c879a;hp=89649e7a9b2dc138bb9618d4e5770e76f62dc7e0;hpb=cd12f536129357d5347c1953db69bde68b5f46c9;p=git.git diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh index 89649e7a9..2d2633f3f 100755 --- a/t/t5516-fetch-push.sh +++ b/t/t5516-fetch-push.sh @@ -419,6 +419,19 @@ test_expect_success 'push with config remote.*.push = HEAD' ' git config --remove-section remote.there git config --remove-section branch.master +test_expect_success 'push with config remote.*.pushurl' ' + + mk_test heads/master && + git checkout master && + git config remote.there.url test2repo && + git config remote.there.pushurl testrepo && + git push there && + check_push_result $the_commit heads/master +' + +# clean up the cruft left with the previous one +git config --remove-section remote.there + test_expect_success 'push with dry-run' ' mk_test heads/master &&