{"thread":{"id":"11291","subject":"relative objects/info/alternates","startedAt":"2007-12-14T14:06:13Z","lastAt":"2007-12-15T07:39:40Z","messageCount":3,"participants":["Luciano Rocha","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"63167","messageId":"20071214140613.GA13259@bit.office.eurotux.com","threadId":"11291","inReplyTo":null,"subject":"relative objects/info/alternates","fromName":"Luciano Rocha","fromEmail":"luciano@eurotux.com","sentAt":"2007-12-14T14:06:13Z","receivedAt":"2007-12-14T14:06:13Z","isPatch":false,"sender":{"key":"luciano@eurotux.com","avatar":null},"body":"\nHello,\n\nCan I use relative $GIT_DIR/objects/info/alternates? Will the git\ncommands work anywhere inside the working-copy despice the alternate\nbeing relative to the root of it?\n\nRegards,\nLuciano Rocha\n\n-- \nLuciano Rocha <luciano@eurotux.com>\nEurotux Informática, S.A. <http://www.eurotux.com/>\n"},{"id":"63169","messageId":"m3bq8tqs9c.fsf@roke.D-201","threadId":"11291","inReplyTo":"20071214140613.GA13259@bit.office.eurotux.com","subject":"Re: relative objects/info/alternates","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-12-14T14:13:09Z","receivedAt":"2007-12-14T14:13:09Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Luciano Rocha <luciano@eurotux.com> writes:\n\n> Can I use relative $GIT_DIR/objects/info/alternates? Will the git\n> commands work anywhere inside the working-copy despice the alternate\n> being relative to the root of it?\n\n>From the information in repository layout documentation:\n\n  objects/info/alternates::\n        This file records paths to alternate object stores that\n        this object store borrows objects from, one pathname per\n        line. Note that not only native Git tools use it locally,\n        but the HTTP fetcher also tries to use it remotely; this\n        will usually work if you have relative paths (relative\n        to the object database, not to the repository!) in your\n        alternates file, but it will not work if you use absolute\n        paths unless the absolute path in filesystem and web URL\n        is the same. See also 'objects/info/http-alternates'.\n\nit looks like you can have relative paths in alternates.\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"},{"id":"63240","messageId":"20071215073940.GA22118@bit.office.eurotux.com","threadId":"11291","inReplyTo":"m3bq8tqs9c.fsf@roke.D-201","subject":"Re: relative objects/info/alternates","fromName":"Luciano Rocha","fromEmail":"luciano@eurotux.com","sentAt":"2007-12-15T07:39:40Z","receivedAt":"2007-12-15T07:39:40Z","isPatch":false,"sender":{"key":"luciano@eurotux.com","avatar":null},"body":"On Fri, Dec 14, 2007 at 06:13:09AM -0800, Jakub Narebski wrote:\n> Luciano Rocha <luciano@eurotux.com> writes:\n> \n> > Can I use relative $GIT_DIR/objects/info/alternates? Will the git\n> > commands work anywhere inside the working-copy despice the alternate\n> > being relative to the root of it?\n> \n> From the information in repository layout documentation:\n> \n>   objects/info/alternates::\n>         This file records paths to alternate object stores that\n>         this object store borrows objects from, one pathname per\n>         line. Note that not only native Git tools use it locally,\n>         but the HTTP fetcher also tries to use it remotely; this\n>         will usually work if you have relative paths (relative\n>         to the object database, not to the repository!) in your\n>         alternates file, but it will not work if you use absolute\n>         paths unless the absolute path in filesystem and web URL\n>         is the same. See also 'objects/info/http-alternates'.\n> \n> it looks like you can have relative paths in alternates.\n\nIt doesn't work too well, when a tree with relative alternat is used by\nanother:\n\nerror: ./objects/../../2.6.23.y.git/objects: ignoring relative\nalternate object store ../../linus.git/objects\n\n-- \nLuciano Rocha <luciano@eurotux.com>\nEurotux Informática, S.A. <http://www.eurotux.com/>\n"}]}