Re: [PATCH 0/2] handling alternates paths with colons
- From
Jeff King <peff@peff.net>
- Date
- Dec 13, 2016, 18:17 UTC
- Message-ID
- <20161213181755.wrgu6drm45v7xhnl@sigill.intra.peff.net>
- In-Reply-To
- <xmqqshpr4s41.fsf@gitster.mtv.corp.google.com>
On Tue, Dec 13, 2016 at 10:10:54AM -0800, Junio C Hamano wrote:
Show 7 quoted lines
> > We do support non-absolute paths, both in alternates files and > > environment variables. It's a nice feature if you want to have a > > relocatable family of shared repositories. I'd imagine that most cases > > start with "../", though. > > Yes. I was only talking about the environment variable, as you can > tell from my mention of "colon" there.
Right, but we also support relative paths via environment variables. I don't think that changes the conclusion though. I'm not convinced relative paths via the environment aren't slightly insane in the first place, given the discussion in 37a95862c (alternates: re-allow relative paths from environment, 2016-11-07). And they'd probably start with "../" as well.
-Peff