From: Nguyen Thai Ngoc Duy Date: Tue, 09 Feb 2010 02:49:54 GMT Subject: Re: [PATCH] Support working directory located at root Message-ID: In-Reply-To: 2010/2/9 Nguyen Thai Ngoc Duy : > But I suspect my change in this code is not enough and caused > the problem (on msys?) for Hannes. If the worktree somehow is '//' and > sanitized is '/etc/resolv.conf', then we could end up eating two > chars, leading to "'tc/resolv.conf' not match" error. > > Hannes, can you put a "printf("%s\n", work_tree);" in prefix_path() to > see if it's the case? Silly me. You used relative path, so that code path was untouched. -- Duy