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

Re: Shared repositories and umask

From
Petr Baudis <pasky@suse.cz>
Date
Feb 15, 2006, 13:05 UTC
Message-ID
<20060215130538.GO31278@pasky.or.cz>
In-Reply-To
<mj+md-20060215.120104.14337.atrey@ucw.cz>
  Hi,

Dear diary, on Wed, Feb 15, 2006 at 01:19:07PM CET, I got a letter where Martin Mares <mj@ucw.cz> said that...

Show 7 quoted lines
> I'm playing with a shared repository and I am still unable to get the
> file and directory permissions kept correctly, that is writeable to
> a group.
> 
> Setting the `core.sharedrepository' flag helps a bit, but not completely:
> the object files and directories are group-writeable, but for example new
> head refs aren't.
  actually, this is not necessary, since when pushing to shared
repositories, the new ref is created in the directory as a lockfile and
then moved over the original ref - this makes the ref updating safe and
raceless, while also making it enough to have the refs directory
group-writable.
  Therefore, it shouldn't be actually necessary to meddle with umask
anymore. The documentation is obsolete; I'll remove the relevant bits
from Cogito docs.
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Of the 3 great composers Mozart tells us what it's like to be human,
Beethoven tells us what it's like to be Beethoven and Bach tells us
what it's like to be the universe.  -- Douglas Adams
Previous: Martin MaresNext: Johannes Schindelin
Message 2 of 5 in “Shared repositories and umask”
  1. Martin MaresFeb 15, 2006
  2. Petr BaudisFeb 15, 2006
  3. Johannes SchindelinFeb 15, 2006
  4. Petr BaudisFeb 15, 2006
  5. Martin MaresFeb 15, 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.