summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-04-08 23:23:41 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-04-08 23:23:41 -0700
commitbff82d0cdaf29ec0f8b1f5f166100770c044388f (patch)
tree331010d5c9192dbee7da020bf416cb4c304e1c93 /setup.c
parentMerge branch 'jc/maint-1.6.0-diff-borrow-carefully' into maint (diff)
parentt1301: loosen test for forced modes (diff)
downloadtgif-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.c b/setup.c
index 6c2deda184..ebd60de9ce 100644
--- a/setup.c
+++ b/setup.c
@@ -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)