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

Re: please pull ppc64-2.6.git

From
Linus Torvalds <torvalds@osdl.org>
Date
Aug 30, 2005, 00:20 UTC
Message-ID
<Pine.LNX.4.58.0508291706230.3243@g5.osdl.org>
In-Reply-To
<17171.39652.237263.484079@cargo.ozlabs.ibm.com>
On Tue, 30 Aug 2005, Paul Mackerras wrote:
> 
> What can one put in the alternates file?  Just an absolute path, or
> does a relative path or a URL work too?
Only an absolute path.

URL's fundamentally do not work, and relative paths end up being parsed as relative to where-ever the user happens to be (and some commands will "chdir()" into the .git directory, while others will not).

For a raw git directory like the ones on master.kernel.org, with a relative pathname (relative to the main git directory itself) the _pulling_ should actually happen to work, since that will be happening in the xxx.git directory using "GIT_DIR=.".

But anything who uses GIT_DIR=<something else> from another directory wouldn't be able to use it. That probably includes gitweb, btw.

So only do the absolute ones. Maybe we should define some well-specified meaning for relative ones, but it definitely isn't there now.

Show 5 quoted lines
> > or similar. That also makes gitweb able to show diffs etc, something it 
> > can't do for a broken partial repository.
> 
> Gitweb still doesn't work; I think someone needs to update the git on
> *.kernel.org.

Hmm, yes. kernel.org is at 0.99.4, and the objects/info/alternates thing was done after that.

It's in 0.99.5, though, so next time kernel.org updates its git version, it will automagically start working.

(And I use my own git installation, so it works fine for me, and I just pulled the thing without problems).

			Linus
Previous: Paul MackerrasNext: Christian Meder
Message 7 of 11 in “Re: please pull ppc64-2.6.git”
  1. Linus TorvaldsAug 29, 2005
  2. Russell KingAug 29, 2005
  3. Linus TorvaldsAug 29, 2005
  4. Russell KingAug 29, 2005
  5. Junio C HamanoSep 2, 2005
  6. Paul MackerrasAug 29, 2005
  7. Linus TorvaldsAug 30, 2005
  8. Christian MederAug 30, 2005
  9. Junio C HamanoAug 30, 2005
  10. Sergey VlasovAug 31, 2005
  11. Junio C HamanoAug 31, 2005

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.