git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCHv2 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only

From
Josh Triplett <josh@joshtriplett.org>
Date
Sep 8, 2009, 07:15 UTC
Message-ID
<20090908071513.GA3236@feather>
In-Reply-To
<7vws49gbql.fsf@alter.siamese.dyndns.org>
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?
Will do.
- Josh Triplett
Previous: Junio C HamanoNext: Josh Triplett
Message 5 of 7 in “[PATCHv2 0/2] Add url.<base>.pushInsteadOf: URL rewriting for push only”
  1. Josh TriplettSep 7, 2009
  2. 1/2 Wrap rewrite globals in a struct in preparation for adding another setJosh Triplett, Sep 7, 2009
  3. 2/2 Add url.<base>.pushInsteadOf: URL rewriting for push onlyJosh Triplett, Sep 7, 2009
  4. Junio C HamanoSep 8, 2009
  5. Josh TriplettSep 8, 2009
  6. Add test for ignoring pushInsteadOf when remote has explicit pushurlJosh Triplett, Sep 8, 2009
  7. Junio C HamanoSep 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.