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

Re: url.<base>.insteadOf with empty value

From
Kirill Likhodedov <kirill.likhodedov@jetbrains.com>
Date
Oct 14, 2011, 19:09 UTC
Message-ID
<6DA2F444-C774-4F22-8EF0-BFD8F3308A4A@jetbrains.com>
In-Reply-To
<7v8von1mnd.fsf@alter.siamese.dyndns.org>
14.10.2011, в 21:57, Junio C Hamano writes:
Show 8 quoted lines
>> If I don't specify any value for url.<base>.insteadOf or url.<base>.pushInsteadOf, Git substitutes all urls for remotes defined in .git/config
>> 
>> If it is not a bug, I'd suggest to add a note to man git-config about this.
> 
> Please assume that what the documentation says is clear enough for whoever
> wrote it and need no further clarification, so you would need to help them
> understand what additional things you may want the documentation to say,
> by clarifying "add a note" and "about this" a bit.

I would add the following to the "url.<base>.insteadOf" section of git-config: :::: If empty value is specified in insteadOf, <base> will be added to the start of any URL.

> The "insteadOf" replacement is meant to apply for any URL we use. I would
> be surprised if it did not affect pushURL; it would be a bug if it didn't.

That was the question I wanted to clarify. I thought that pushURL shouldn't be affected by insteadOf, because it is not affected by pushInsteadOf. Thanks for clarifying that out.

Show 5 quoted lines
> On the other hand, the rewrite done by "pushinsteadof" is meant to apply
> only when remote.<any>.url is used for pushing.  See t/t5516-fetch-push.sh
> part of the patch for 1c2eafb (Add url.<base>.pushInsteadOf: URL rewriting
> for push only, 2009-09-07). It would clarify what the intended interaction
> among these configuration variables.
Yeah, that's clear. My question was only about insteadOf behavior. Sorry for making it not clear enough. The behavior of pushInsteadOf is completely clear from the discussion thread I mentioned and from t5516-fetch-push.sh
Thanks.
Previous: Junio C Hamano
Message 3 of 3 in “url.<base>.insteadOf with empty value”
  1. Kirill LikhodedovOct 14, 2011
  2. Junio C HamanoOct 14, 2011
  3. Kirill LikhodedovOct 14, 2011

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.