Shared repositories and umask

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Martin Mares
Date: Wednesday, February 15, 2006 - 5:19 am

Hello, world!\n

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.

The documentation hints on setting umask, but I would really like to avoid
doing that globally, because the user accounts are used for many other
things as well where the permissions should be tighter.

It seems that a correct solution would be to add an `umask' option to
the repository config and make enter_repo() adjust the umask accordingly.

I was thinking about doing the same in setup_git_directory() for the
local commands, but that probably doesn't make much sense since many commands
are in fact scripts creating files themselves.

If you agree, I will send a patch.

				Have a nice fortnight
-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
Q: How many Prolog programmers does it take to change a light bulb?  A: No.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Shared repositories and umask, Martin Mares, (Wed Feb 15, 5:19 am)
Re: Shared repositories and umask, Petr Baudis, (Wed Feb 15, 6:05 am)
Re: Shared repositories and umask, Johannes Schindelin, (Wed Feb 15, 6:51 am)
Re: Shared repositories and umask, Petr Baudis, (Wed Feb 15, 6:59 am)
Re: Shared repositories and umask, Martin Mares, (Wed Feb 15, 7:06 am)