I realize that you already found the solution (Core.SharedRepository),
but:
On Mon, 29 May 2006, Salikh Zakirov wrote:
2) I have 'umask 002' in my ~/.profile. Somehow, it does not help,
because ~/.profile is not read on non-interactive SSH sessions
(to verify that, just try to do 'ssh somehost umask')
The ".profile" thing is indeed read only for interactive tasks.
So use ".bashrc" instead.
The reason I mention that is that this has come up before: if you need to
do things like setting PATH to point to your ~/bin directory (to use your
own version of git rather than the system one), or if you want to set
environment variables like GIT_COMMITTER_NAME etc, you should always use
.bashrc, so that you get the same answers whether you log in
interactively, or whether you just do "ssh host git-cmd".
Linus