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

Re: working directory umask

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

D Herring [off-list ref] writes:
One problem:  Even though the working directory is g+swx and git was
initialized with --shared=group or --shared=0660, the checked out
source files still don't have group write permissions...
It is working as designed. "shared" setting is about a shared central
repository that is typically a bare repository, and currently it is
implemented as such.

You could argue that the behaviour for the work tree files is undefined
and make the code act differently, though.

In any case, it would be better to document this, and it might even make
sense to issue a warning message when we detect the repository is used
with a work tree (including the use of GIT_DIR and GIT_WORK_TREE
environment variables to temporarily turn a bare repository with a work
tree).

Thanks for a report.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help