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

Re: relative objects/info/alternates

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 14, 2007, 14:13 UTC
Message-ID
<m3bq8tqs9c.fsf@roke.D-201>
In-Reply-To
<20071214140613.GA13259@bit.office.eurotux.com>
Luciano Rocha <luciano@eurotux.com> writes:
> Can I use relative $GIT_DIR/objects/info/alternates? Will the git
> commands work anywhere inside the working-copy despice the alternate
> being relative to the root of it?
>From the information in repository layout documentation:
  objects/info/alternates::
        This file records paths to alternate object stores that
        this object store borrows objects from, one pathname per
        line. Note that not only native Git tools use it locally,
        but the HTTP fetcher also tries to use it remotely; this
        will usually work if you have relative paths (relative
        to the object database, not to the repository!) in your
        alternates file, but it will not work if you use absolute
        paths unless the absolute path in filesystem and web URL
        is the same. See also 'objects/info/http-alternates'.
it looks like you can have relative paths in alternates.
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Luciano RochaNext: Luciano Rocha
Message 2 of 3 in “relative objects/info/alternates”
  1. Luciano RochaDec 14, 2007
  2. Jakub NarebskiDec 14, 2007
  3. Luciano RochaDec 15, 2007

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.