author | Heikki Orsila <heikki.orsila@iki.fi> | |
Wed, 16 Apr 2008 08:34:24 +0000 (11:34 +0300) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 17 Apr 2008 01:23:54 +0000 (18:23 -0700) | ||
commit | 06cbe8550324e0fd2290839bf3b9a92aa53b70ab | |
tree | e455c3b2f28bd57e3d166f8bf1f11bab5cf7ae1e | tree | snapshot |
parent | a17b1d2f0b3128be6f116bf22b58244b310d27b9 | commit | diff |
Make core.sharedRepository more generic
git init --shared=0xxx, where '0xxx' is an octal number, will create
a repository with file modes set to '0xxx'. Users with a safe umask
value (0077) can use this option to force file modes. For example,
'0640' is a group-readable but not group-writable regardless of
user's umask value. Values compatible with old Git versions are written
as they were before, for compatibility reasons. That is, "1" for
"group" and "2" for "everybody".
"git config core.sharedRepository 0xxx" is also handled.
Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git init --shared=0xxx, where '0xxx' is an octal number, will create
a repository with file modes set to '0xxx'. Users with a safe umask
value (0077) can use this option to force file modes. For example,
'0640' is a group-readable but not group-writable regardless of
user's umask value. Values compatible with old Git versions are written
as they were before, for compatibility reasons. That is, "1" for
"group" and "2" for "everybody".
"git config core.sharedRepository 0xxx" is also handled.
Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt | diff | blob | history | |
Documentation/git-init.txt | diff | blob | history | |
builtin-init-db.c | diff | blob | history | |
cache.h | diff | blob | history | |
path.c | diff | blob | history | |
setup.c | diff | blob | history | |
t/t1301-shared-repo.sh | diff | blob | history |