]> asedeno.scripts.mit.edu Git - git.git/blobdiff - path.c
Merge branch 'sp/maint-pack-memuse' into maint
[git.git] / path.c
diff --git a/path.c b/path.c
index 6e3df1849965be6a88fac89c007f9b5fe960f825..c1d567996d225c03f58c1208f4806f74f64e92e1 100644 (file)
--- a/path.c
+++ b/path.c
@@ -272,7 +272,7 @@ int adjust_shared_perm(const char *path)
                int tweak = shared_repository;
                if (!(mode & S_IWUSR))
                        tweak &= ~0222;
-               mode = (mode & ~0777) | tweak;
+               mode |= tweak;
        } else {
                /* Preserve old PERM_UMASK behaviour */
                if (mode & S_IWUSR)