git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git leaves behind .git/COMMIT_EDITMSG non-shared in --shared non-bare repo
@ 2015-12-18 19:55 Yaroslav Halchenko
  2015-12-19 10:40 ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: Yaroslav Halchenko @ 2015-12-18 19:55 UTC (permalink / raw)
  To: git

Not sure for what batch operations that file is actually useful, but the
story is that if we have a shared git repo (I know -- might not be as
common of a situation but possible and allowed to happen), then if one
from the shared group commits within that repository, it becomes
impossible for another person to commit.  

git does take care about chmod'ing all the files under .git/objects etc
for --shared operation, but leaves .git/COMMIT_EDITMSG at the
mercy of user's umask.  IMHO correct resolution, if leaving that file
behind is necessary, is to chmod it in the same fashion as any other
internal .git file in --shared mode -- with group write permission.

I have reproduced that behavior with today's version of git as of
2.7.0.rc1.5.gf3adf45.

-- 
Yaroslav O. Halchenko
Center for Open Neuroscience     http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-12-19 18:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-18 19:55 git leaves behind .git/COMMIT_EDITMSG non-shared in --shared non-bare repo Yaroslav Halchenko
2015-12-19 10:40 ` Johannes Schindelin
2015-12-19 12:40   ` SZEDER Gábor
2015-12-19 18:24     ` Johannes Schindelin
2015-12-19 15:01   ` Yaroslav Halchenko

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).