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