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

Re: Remotes order in "git remote update"

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 10, 2008, 11:13 UTC
Message-ID
<alpine.LSU.1.00.0803101212220.3975@racer.site>
In-Reply-To
<2008-03-10-09-17-33+trackit+sam@rfc1149.net>
Hi,
On Mon, 10 Mar 2008, Samuel Tardieu wrote:
Show 16 quoted lines
> On  9/03, Johannes Schindelin wrote:
> 
> | Well, technically this is a regression.
> | 
> | If you really want to order your remotes, why not add something like
> | 
> | [remotes]
> | 	default = my-first-remote my-second-remote [...]
> | 
> | to the config?  That is what the (recently fixed in builtin-remote) 
> | remote groups are for...
> 
> I could do that, but it means that if I add a new remote, it won't enter 
> the default group by itself since I defined it explicitely. I think 
> respecting the order given in the .git/config file when not using a 
> group doesn't hurt and may help.

Well, since the builtin remote does that, I do not see a reason to change it ;-) However, I do not see a reason to guarantee that, either.

Show 5 quoted lines
> Or maybe we should add a remotes.reference configuration variable which 
> lists the remote to use first if it belongs to the list of remotes we 
> are going to fetch from. Or at least, make origin the first fetched 
> remote, but I know some projects where origin uses a dumb protocol while 
> other contributors have up-to-date non-dumb public repositories.

I do not like the remotes.reference idea. Too specific for one particular use case.

Ciao, Dscho

Previous: Samuel TardieuNext: Junio C Hamano
Message 8 of 9 in “Remotes order in "git remote update"”
  1. Samuel TardieuMar 9, 2008
  2. Junio C HamanoMar 9, 2008
  3. Samuel TardieuMar 9, 2008
  4. Johannes SchindelinMar 9, 2008
  5. Junio C HamanoMar 10, 2008
  6. Johannes SchindelinMar 10, 2008
  7. Samuel TardieuMar 10, 2008
  8. Johannes SchindelinMar 10, 2008
  9. Junio C HamanoMar 10, 2008

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.