Re: [PATCH 3/5] introduce GIT_WORK_TREE environment variable
- From
- Matthias Lederhofer <matled@gmx.net>
- Date
- Mar 18, 2007, 20:23 UTC
- Message-ID
- <20070318202302.GA5191@moooo.ath.cx>
- In-Reply-To
- <20070318201209.GA1968@moooo.ath.cx>
Matthias Lederhofer <matled@gmx.net> wrote:
Show 6 quoted lines
> Matthias Lederhofer <matled@gmx.net> 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?"