t5516: test interaction between pushURL and pushInsteadOf correctly
authorJunio C Hamano <gitster@pobox.com>
Thu, 28 Mar 2013 15:39:39 +0000 (08:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Mar 2013 20:53:27 +0000 (13:53 -0700)
1c2eafb89bca (Add url.<base>.pushInsteadOf: URL rewriting for push
only, 2009-09-07) wants to make sure that a push destination read
from URL is not rewritten by pushInsteadOf because an explicit
pushURL exists; for that, a pushInsteadOf rewrite rule for the value
of remote.r.URL is set to a non-existent is set up.

We would also want to make sure that pushInsteadOf rewrite rule is
not applied to the location read from pushURL.

This way, we will make sure that

- "testrepo/" (pushURL) gets updated;

- the push does not try to update "trash2/" (the result of applying
pushInsteadOf to pushURL);

- the push does not try to update "trash3/" (the result of applying
pushInsteadOf to URL).

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found