mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
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>
This commit is contained in:
parent
203462347f
commit
e1ca424112
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue