From: Jonathan Nieder Date: Mon, 09 Aug 2010 23:01:32 GMT Subject: Re: [PATCH] More readable 'Not a git repository' messages Message-ID: <20100809230132.GG4429@burratino> In-Reply-To: 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. :)