From: Nguyen Thai Ngoc Duy Date: Thu, 11 Feb 2010 12:44:51 GMT Subject: Re: [PATCH 3/4] Support working directory located at root Message-ID: In-Reply-To: <201002092019.45134.j6t@kdbg.org> On 2/10/10, Johannes Sixt wrote: > On Dienstag, 9. Februar 2010, Nguyễn Thái Ngọc Duy wrote: > > I said I would have code change for DOS drive too. But I take it back. > > Supporting GIT_DIR=C:\.git might be easy, GIT_DIR=C:.git is not. > > > One does not set GIT_DIR=C:.git; it would be insane because it means ".git in > an unpredictable directory somewhere on drive C". It would be great to > support GIT_DIR=C:/.git A bit off topic, but make_relative_path() may need more care for the Windows port. I thought of making relative path between C:/foo and D:/bar but it should work well for that case. //machine/share1/foo and //machine/share2/bar may fail though. -- Duy