Re: [PATCH] git-receive-pack needs to set umask(2)
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- May 29, 2006, 17:00 UTC
- Message-ID
- <Pine.LNX.4.64.0605290956190.5623@g5.osdl.org>
- In-Reply-To
- <447ADAEF.3030806@Intel.com>
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