git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: shared permissions on COMMIT_EDITMSG

From
William Pursell <bill.pursell@gmail.com>
Date
Jan 28, 2010, 17:03 UTC
Message-ID
<4B61C371.4050903@gmail.com>
In-Reply-To
<20100128111425.GA29577@Knoppix>
Ilari Liusvaara wrote:
Show 14 quoted lines
> On Wed, Jan 27, 2010 at 11:19:22PM -1000, William Pursell wrote:
>> With git-init --shared=0660 and a umask of 022,
>> the first commit to the repository creates
>> the file COMMIT_EDITMSG with mode 0644
>> instead of 0660.  I believe this is incorrect
>> behavior.  Simple fix:
>  
> COMMIT_EDITMSG is related to committing, committing needs
> working copy, and shared working copies don't work all too
> well (and Git can't do anything about that because all kinds
> of stuff edits the files there, not just Git).
> 
> Shared repository settings are meant to override umasks
> for files in actual repository itself.

For simple work flows (eg recording linear history of config files), sharing a working directory works okay except for COMMIT_EDITMSG. Since COMMIT_EDITMSG is in the git repository and only written by git, it makes sense for core.sharedrepository to be honored.

-- 
William Pursell
Previous: Ilari LiusvaaraNext: demerphq
Message 3 of 4 in “shared permissions on COMMIT_EDITMSG”
  1. William PursellJan 28, 2010
  2. Ilari LiusvaaraJan 28, 2010
  3. William PursellJan 28, 2010
  4. demerphqJan 28, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.