From: Matthias Lederhofer Date: Sun, 18 Mar 2007 20:23:02 GMT Subject: Re: [PATCH 3/5] introduce GIT_WORK_TREE environment variable Message-ID: <20070318202302.GA5191@moooo.ath.cx> In-Reply-To: <20070318201209.GA1968@moooo.ath.cx> Matthias Lederhofer wrote: > Matthias Lederhofer wrote: > > + inside_working_tree = !prefixcmp(cwd, worktree); > [..] > > + inside_git_dir = !prefixcmp(cwd, gitdir); > > This time a real bug: the parameters have to be the other way around. Sorry, it was right. prefixcmp got me confused again when doing some testing and the result wasn't what I expected. I'll go and copy&paste 100 times !prefixcmp(str, prefix) means "begins str with prefix?"