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

Re: git fetch with multiple remotes failing?

From
Petr Baudis <pasky@suse.cz>
Date
Nov 1, 2006, 00:12 UTC
Message-ID
<20061101001242.GF20017@pasky.or.cz>
In-Reply-To
<Pine.LNX.4.64.0610310819170.25218@g5.osdl.org>

Dear diary, on Tue, Oct 31, 2006 at 05:32:06PM CET, I got a letter where Linus Torvalds <torvalds@osdl.org> said that...

Show 17 quoted lines
> On Tue, 31 Oct 2006, Michael S. Tsirkin wrote:
> > $ cat .git/remotes/origin
> > URL: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> > Pull: +refs/heads/master:refs/heads/linus_master
> > $ cat .git/remotes/jejb-scsi-misc-2.6
> > URL: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6.git
> > Pull: +refs/heads/master:refs/heads/jejb-scsi-misc-2.6
> > $ git fetch -f origin jejb-scsi-misc-2.6
> > error: no such remote ref refs/heads/jejb-scsi-misc-2.6
> > Fetch failure:
> > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> > 
> > Looks I must give remotes one by one?
> 
> Yes. A single "fetch" will only ever connect to a single repository. If 
> you want to fetch from multiple repositories, you have to do multiple 
> connections, and thus multiple "fetch"es.

Note that I made a (hackish) patch for fetching from multiple repositories in one connection (look for "Allow fetching from multiple repositories at once"). It's currently in limbo since IIRC Junio wanted some benchmarks, I don't have time to do them and the group I did this for (the xorg people) has shown zero interest in testing the patch either.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
Previous: Linus Torvalds
Message 3 of 3 in “git fetch with multiple remotes failing?”
  1. Michael S. TsirkinOct 31, 2006
  2. Linus TorvaldsOct 31, 2006
  3. Petr BaudisNov 1, 2006

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.