git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Shawn PearceNext: Alex Riesen
Message 6 of 9 in “git-receive-pack needs to set umask(2)”
  1. git-receive-pack needs to set umask(2)Michael Richardson, May 28, 2006
  2. Jakub NarebskiMay 28, 2006
  3. Johannes SchindelinMay 29, 2006
  4. Salikh ZakirovMay 29, 2006
  5. Shawn PearceMay 29, 2006
  6. Linus TorvaldsMay 29, 2006
  7. Alex RiesenMay 29, 2006
  8. Johannes SchindelinMay 29, 2006
  9. Petr BaudisMay 28, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.