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

Re: git clone stable-2.6.25.y fails over HTTP

From
Greg KH <greg@kroah.com>
Date
Jun 5, 2008, 05:08 UTC
Message-ID
<20080605050855.GA22825@kroah.com>
In-Reply-To
<7vabi05xl1.fsf@gitster.siamese.dyndns.org>
On Wed, Jun 04, 2008 at 09:12:42PM -0700, Junio C Hamano wrote:
Show 26 quoted lines
> Greg KH <greg@kroah.com> writes:
> 
> > On Wed, Jun 04, 2008 at 10:09:02AM -0700, Junio C Hamano wrote:
> >
> >> A quick fix is obviously to remove the extra prefix but it makes me wonder
> >> how these two "stable" repositories were prepared differently.  Could this
> >> be a regression in "git clone"?  Or perhaps you "clone -s"'s Linus's
> >> repository slightly differently between them?
> >
> > That's odd.
> >
> > Chris was the one that created the .24 tree and I created the .25 tree,
> > so we must have done so differently, sorry.
> 
> No need to be sorry.  Thanks for raising the issue up.
> 
> I think I have one possible explanation.  When "git clone" was rewritten
> in C some time ago, it started to dereference symlinks, and newer git
> would dereference /pub -> /home/ftp/pub when you do:
> 
> 	git clone -s --bare /pub/scm/linux/kernel/git/torvalds/linux-2.6/ linux-2.6.2x.y
> 
> while the scripted version used to keep /pub/scm path.
> 
> A bit further digging is necessary to make sure if we can fix this easily,
> but I suspect this is worth fixing.
I can duplicate what I did, and it did it again:
	on master.kernel.org:
	$ cd /pub/scm/linux/kernel/git/stable/
	$ git clone -s --bare ../torvalds/linux-2.6.git/ test
	$ cat test/objects/info/alternates
	/home/ftp/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects
I'm guessing this is because /pub/ is a symlink:
	$ ls -l /pub
	lrwxrwxrwx 1 root root 13 Feb  4  2006 /pub -> /home/ftp/pub
	$ git --version
	git version 1.5.5.3
thanks,
greg k-h
Previous: Junio C HamanoNext: Daniel Barkalow
Message 7 of 12 in “Re: git clone stable-2.6.25.y fails over HTTP”
  1. Greg KHJun 4, 2008
  2. Junio C HamanoJun 4, 2008
  3. Jakub NarebskiJun 4, 2008
  4. Junio C HamanoJun 4, 2008
  5. Greg KHJun 5, 2008
  6. Junio C HamanoJun 5, 2008
  7. Greg KHJun 5, 2008
  8. Daniel BarkalowJun 5, 2008
  9. Junio C HamanoJun 5, 2008
  10. Greg KHJun 6, 2008
  11. Junio C HamanoJun 6, 2008
  12. Greg KHJun 6, 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.