Re: help: the question about relative path in the objects/info/alternates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason Wang <jason77.wang@xxxxxxxxx> writes:

> From the objects/info/alternates part of this URL
> http://www.kernel.org/pub/software/scm/git/docs/gitrepository-layout.html,
> it says it will work if alternates has relative path in it.

It does not just say "relative path", but "relative to the object
database".  It expresses where the "objects" directory you are borrowing
from is, relative to your own "objects" directory.

For example, if you have /src/ib/{objects,refs,HEAD} as your repository
that borrows from elsewhere, say /src/base/, then objects/info/alternates
file in the borrowing repository should say either /src/base/objects/, or
"../../base/objects".

An easy way to make sure you do not make typo is to go to your borrowing
objects directory, and then let your shell completion to type your path,
like this:

    $ cd /home/jason/source/incremental-bare
    $ cd objects
    $ echo ../../base-bare/objects >info/alternates

While formulating that "echo" command line, you would type ../../ <TAB>
and pick base-bare, <TAB> and pick objects.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]