Thread (1 message) 1 message, 1 author, 2016-06-15

Re: git /objects directory created 755 by default?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:15

Martin Langhoff [off-list ref] writes:
Since git changed to creating the objects subdirectories "on demand",
these are created 755 regardless of the user's umask. This is quite
inconvenient in ("cvs style") team-shared repositories, which work
great otherwise.
Hmph.

I have 002 as umask. .git/objects or .git/objects/[0-9a-f]{2}
directories are created 0775 for me.

Do we have hardcoded 0755 that we need to change to 0777
somewhere?  sha1_file.c::safe_create_leading_directories() is
the primary code that creates directories lazily, and we mkdir
with 0777 there.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help