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

Re: shared permissions on COMMIT_EDITMSG

From
Ddemerphq <demerphq@gmail.com>
Date
Jan 28, 2010, 17:57 UTC
Message-ID
<9b18b3111001280957q3806667ci88b9ec58b94d81cc@mail.gmail.com>
In-Reply-To
<4B61C371.4050903@gmail.com>
2010/1/28 William Pursell <bill.pursell@gmail.com>:
Show 22 quoted lines
> Ilari Liusvaara wrote:
>> 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.

I agree. And personally ive used shared working directories quite a bit without issue. Thanks be to git --interactive.

cheers, Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
Previous: William Pursell
Message 4 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.