From: Junio C Hamano Date: Fri, 29 May 2015 15:29:54 GMT Subject: Re: BUG: Wrong error message when access to .git directory denied Message-ID: In-Reply-To: <20150529104743.6220a11f@outerspace.dyndns.org> Jonas Berlin writes: > Severity: Low > Impact: Confusion ;-) > Git version: 1.9.1 > > If I don't have permissions to access the .git folder of a non-bare > git repository, I get the following output: > > fatal: Not a git repository (or any of the parent directories): .git > > Expected output: > > fatal: Permission denied while accessing .git directory But the thing is, .git being unreadable simply means we do not know if it is a .git directory, or a random directory that does not have anything to do with Git that happens to have that name. So "Not a git repository" is the best Git can say.