git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* relative objects/info/alternates
@ 2007-12-14 14:06 Luciano Rocha
  2007-12-14 14:13 ` Jakub Narebski
  0 siblings, 1 reply; 3+ messages in thread
From: Luciano Rocha @ 2007-12-14 14:06 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 308 bytes --]


Hello,

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?

Regards,
Luciano Rocha

-- 
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: relative objects/info/alternates
  2007-12-14 14:06 relative objects/info/alternates Luciano Rocha
@ 2007-12-14 14:13 ` Jakub Narebski
  2007-12-15  7:39   ` Luciano Rocha
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Narebski @ 2007-12-14 14:13 UTC (permalink / raw)
  To: Luciano Rocha; +Cc: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: relative objects/info/alternates
  2007-12-14 14:13 ` Jakub Narebski
@ 2007-12-15  7:39   ` Luciano Rocha
  0 siblings, 0 replies; 3+ messages in thread
From: Luciano Rocha @ 2007-12-15  7:39 UTC (permalink / raw)
  To: Jakub Narebski; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]

On Fri, Dec 14, 2007 at 06:13:09AM -0800, Jakub Narebski wrote:
> 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.

It doesn't work too well, when a tree with relative alternat is used by
another:

error: ./objects/../../2.6.23.y.git/objects: ignoring relative
alternate object store ../../linus.git/objects

-- 
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-15  7:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-14 14:06 relative objects/info/alternates Luciano Rocha
2007-12-14 14:13 ` Jakub Narebski
2007-12-15  7:39   ` Luciano Rocha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).