* working directory umask
@ 2010-02-02 6:30 D Herring
2010-02-02 6:43 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: D Herring @ 2010-02-02 6:30 UTC (permalink / raw)
To: git
Hi all,
So for one project at work, we have a (slow) server with a common
build area. Standard practice has been to extract a tarball,
configure, make, make install into a common area. I have started
using git to replace the tarballs -- keep version info, make doesn't
have to rebuild everything, auto-tag install sources, etc.
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...
Is there an option that I've overlooked? I can't seem to find
anything that overrides umask in the working directory, only in the repo.
Thanks,
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: working directory umask
2010-02-02 6:30 working directory umask D Herring
@ 2010-02-02 6:43 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2010-02-02 6:43 UTC (permalink / raw)
To: D Herring; +Cc: git
D Herring <dherring@tentpost.com> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-02 6:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-02 6:30 working directory umask D Herring
2010-02-02 6:43 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).