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

Re: [PATCH] t5516-fetch-push: Correct misspelled pushInsteadOf

From
Anders Kaseorg <andersk@mit.edu>
Date
Mar 4, 2015, 09:43 UTC
Message-ID
<alpine.DEB.2.10.1503040439100.60859@buzzword-bingo.mit.edu>
In-Reply-To
<54F6D20D.903@drmicha.warpmail.net>
On Wed, 4 Mar 2015, Michael J Gruber wrote:
Show 13 quoted lines
> If there is no "pushurl":
>   "url" will be used as the "URL for fetch" and as the "URL for push".
>   if we are pushing and there is "pushinsteadof" for (part of) "url"
>     subsitute that within "url"
>   else if there is "insteadof" for (part of) "url"
>     substitute that within "url"
> 
> If there is a "pushurl":
>   "url" will be used as the "URL for fetch" and "pushurl" as the "URL for push".
>   if we are pushing and there is "insteadof" for (part of) "pushurl"
>     substitute that within "pushurl"
>   else if we are fetching and there is "insteadof" for (part of) "url"
>     substiute that within "url"

Speaking of that, I recently had to reimplement most of this logic for the openstack git-review tool (https://review.openstack.org/160152), which is why I was staring too closely at t5516 in the first place. It would be nice to have a ‘git ls-remote --get-push-url’ analogous to the existing ‘git ls-remote --get-url’.

Anders
Previous: Michael J GruberNext: Michael J Gruber
Message 6 of 8 in “t5516-fetch-push: Correct misspelled pushInsteadOf”
  1. t5516-fetch-push: Correct misspelled pushInsteadOfAnders Kaseorg, Mar 1, 2015
  2. Junio C HamanoMar 2, 2015
  3. Michael J GruberMar 3, 2015
  4. Junio C HamanoMar 3, 2015
  5. Michael J GruberMar 4, 2015
  6. Anders KaseorgMar 4, 2015
  7. Michael J GruberMar 4, 2015
  8. Junio C HamanoMar 4, 2015

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.