Setting the directory mode 0755 on EGIT3_STORE_DIR clashes with local user/group settings for the parent directory (like sticky group ownership by the portage group). Is there any way to get rid of this and let the default do its thing?
Well, the problem is that if you have an ebuild with RESTRICT=userpriv, it may create store dir readable only by root. Not sure if we have any legit way of avoiding this. Maybe we could check for $EUID == 0, and apply the wider permissions only then.
+ 07 Jul 2014; Michał Górny <mgorny@gentoo.org> git-r3.eclass: + Stop forcing -m0755 on EGIT3_STORE_DIR and parents, bug #516508. Well, after some discussion on #gentoo-dev I've found out that this makes no sense and doesn't serve any purpose therefore. I'm afraid that there's no sane way to fixup the permissions automatically now.