diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-04-08 23:23:41 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-08 23:23:41 -0700 |
commit | bff82d0cdaf29ec0f8b1f5f166100770c044388f (patch) | |
tree | 331010d5c9192dbee7da020bf416cb4c304e1c93 /setup.c | |
parent | Merge branch 'jc/maint-1.6.0-diff-borrow-carefully' into maint (diff) | |
parent | t1301: loosen test for forced modes (diff) | |
download | tgif-bff82d0cdaf29ec0f8b1f5f166100770c044388f.tar.xz |
Merge branch 'jc/shared-literally' into maint
* jc/shared-literally:
t1301: loosen test for forced modes
set_shared_perm(): sometimes we know what the final mode bits should look like
move_temp_to_file(): do not forget to chmod() in "Coda hack" codepath
Move chmod(foo, 0444) into move_temp_to_file()
"core.sharedrepository = 0mode" should set, not loosen
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -434,7 +434,7 @@ int git_config_perm(const char *var, const char *value) /* * Treat values 0, 1 and 2 as compatibility cases, otherwise it is - * a chmod value. + * a chmod value to restrict to. */ switch (i) { case PERM_UMASK: /* 0 */ @@ -456,7 +456,7 @@ int git_config_perm(const char *var, const char *value) * Mask filemode value. Others can not get write permission. * x flags for directories are handled separately. */ - return i & 0666; + return -(i & 0666); } int check_repository_format_version(const char *var, const char *value, void *cb) |