Re: [PATCH] More readable 'Not a git repository' messages
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Aug 9, 2010, 23:01 UTC
- Message-ID
- <20100809230132.GG4429@burratino>
- In-Reply-To
- <i3q0d8$m8f$1@dough.gmane.org>
Ralf Ebert wrote:
> this code is inside a loop that goes up in the directory hierarchy. > So cwd[offset] = '\0' does not only happen once before dying.
I hope not, since then the returned cwd value would be useless for restoring the original cwd later.
Shameless plug: you may find the version in commit 98937be (i.e. branch jn/maint-setup-fix in pu) more readable. :)