Subject: Re: Fatal: <hash> is corrupted can be caused by wrong permissions

From: Jeff King <[email-masked]>
Date: Sat, 25 Oct 2014 03:17:41 -0700

On Fri, Oct 24, 2014 at 04:05:24PM +0200, Matthieu Moy wrote:

> I can reproduce with Git 1.7.10 by doing a chmod 0 on some object files,
> but recent Git's produce
> 
> Checking object directories: 100% (256/256), done.
> fatal: failed to read object ab2e06e74d922268fbff8d219dad9eee63786947: Permission denied
> 
> So I guess this has already been fixed :-).

Probably d6c8a05 (open_sha1_file: report "most interesting" errno,
2014-05-15). The example in the commit message even uses "chmod 0". :)

It's in v2.0.1.

-Peff