Re: [PATCH v3 1/2] rev-parse: add --prefix option
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Apr 19, 2013, 11:29 UTC
- Message-ID
- <CALkWK0=nw7fR2EB6YT=Cx4mUxmBjJCAzAszmey0K+QD55NqwyQ@mail.gmail.com>
- In-Reply-To
- <20130419112524.GH2278@serenity.lan>
John Keeping wrote:
> It looks to me like setup_git_directory() returns NULL if we're at the > top of the working tree so we do need that check. I suspect that's so > that "!prefix" does the right thing.
Ah, yes. My bad. I expected it to return "/" on the toplevel directory actually.