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

Re: [PATCH] git-receive-pack needs to set umask(2)

From
Petr Baudis <pasky@ucw.cz>
Date
May 28, 2006, 22:06 UTC
Message-ID
<20060528220628.GE10488@pasky.or.cz>
In-Reply-To
<v0irnpn8ea.fsf@marajade.sandelman.ca>

Dear diary, on Sun, May 28, 2006 at 11:31:41PM CEST, I got a letter where Michael Richardson <mcr@sandelman.ottawa.on.ca> said that...

> If there is another way to solve this, please let me know.

Well, you didn't write what do you actually want to solve. Why do you need to fiddle with the umask at all?

The object database is considered "append-only" unless you do git-prune (and you should better not let anyone do that), thus it's enough if you set all directories group-writable. Other than access the object database, the users probably only want to update the refs - the solution is to make refs/heads/ and refs/tags/ group-writable and setgid. This is also what git-init-db --shared (or tools like cg-admin-setuprepo) should already set up for you.

So, what did break?
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
A person is just about as big as the things that make them angry.
Previous: Johannes Schindelin
Message 9 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.