Re: [PATCHv2 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
On Tue, Sep 08, 2009 at 12:02:42AM -0700, Junio C Hamano wrote:
Show 20 quoted lines
> Josh Triplett <josh@joshtriplett.org> writes:
>
> > This configuration option allows systematically rewriting fetch-only
> > URLs to push-capable URLs when used with push. For instance:
> >
> > [url "ssh://example.org/"]
> > pushInsteadOf = "git://example.org/"
> >
> > This will allow clones of "git://example.org/path/to/repo" to
> > subsequently push to "ssh://example.org/path/to/repo", without manually
> > configuring pushurl for that remote.
> >
> > Includes documentation for the new option, bash completion updates, and
> > test cases (both that pushInsteadOf applies to push and that it does
> > *not* apply to fetch).
>
> Thanks.
>
> I will queue these patches, but I presume you would also want to add a
> test that pushInsteadOf is ignored for remotes with an explicit pushURL?