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

Re: tip tree clone fail

From
IMIngo Molnar <mingo@elte.hu>
Date
Oct 12, 2008, 16:59 UTC
Message-ID
<20081012165954.GA2317@elte.hu>
In-Reply-To
<20081012153952.GV10544@machine.or.cz>
* Petr Baudis <pasky@suse.cz> wrote:
Show 16 quoted lines
> On Sun, Oct 12, 2008 at 05:24:27PM +0200, Ingo Molnar wrote:
> > hm, -tip's .git/hooks/post-update already contained this, for the last 2 
> > months:
> > 
> >   exec git update-server-info
> > 
> > so ... _despite_ us having this in the git repo, the HTTP protocol still 
> > does not work. Why?
> 
> I think your problem is that HTTP does not know where to look for
> objects coming from alternates; IIRC this would work if you used
> relative paths in objects/info/alternates, or you can create
> objects/info/http-alternates like
> 
> 	/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects
> 	/pub/scm/linux/kernel/git/sfr/linux-next.git/objects
ok, i've now set it up like this:
 $ pwd
 /pub/scm/linux/kernel/git/x86/linux-2.6-tip.git
 $ cat objects/info/alternates
 /home/ftp/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects
 /home/ftp/pub/scm/linux/kernel/git/sfr/linux-next.git/objects
 $ cat objects/info/http-alternates
 /pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects
 /pub/scm/linux/kernel/git/sfr/linux-next.git/objects

and i've added "git update-server-info" to hooks/post-receive and made it chmod +x.

that should be golden, right? I'm wondering why this isnt in the default setup - i've been behind a limited corporate firewall in a former life and having HTTP access is indeed very handy and pragmatic. Often hotel WLANs are HTTP only as well.

Soapbox: in fact it would be outright stupid to limit the kernel 
source's availability artificially by not making HTTP a tier-one access 
method.
Fighting against HTTP-only firewalls is like constantly pointing it out 
to the popular press that they should say 'cracker' instead of 'hacker'. 
It is pointless and only hurts the availability our own project.
	
	Ingo
Previous: Petr BaudisNext: Jakub Narebski
Message 13 of 21 in “Re: tip tree clone fail”
  1. Thomas GleixnerOct 10, 2008
  2. Wang ChenOct 10, 2008
  3. H. Peter AnvinOct 10, 2008
  4. Wang ChenOct 12, 2008
  5. Lars HjemliOct 12, 2008
  6. H. Peter AnvinOct 12, 2008
  7. Ingo MolnarOct 12, 2008
  8. Miklos VajnaOct 12, 2008
  9. H. Peter AnvinOct 12, 2008
  10. Ingo MolnarOct 12, 2008
  11. Teemu LikonenOct 12, 2008
  12. Petr BaudisOct 12, 2008
  13. Ingo MolnarOct 12, 2008
  14. Jakub NarebskiOct 12, 2008
  15. Shawn O. PearceOct 12, 2008
  16. H. Peter AnvinOct 13, 2008
  17. Wang ChenOct 13, 2008
  18. H. Peter AnvinOct 13, 2008
  19. Wang ChenOct 15, 2008
  20. H. Peter AnvinOct 15, 2008
  21. H. Peter AnvinOct 13, 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.