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

Re: 'git clone,' build makes user non-writable files (should be option keep user-writable)

From
David Chmelik <davidnchmelik@gmail.com>
Date
Jul 23, 2022, 00:25 UTC
Message-ID
<ccbc1e81-b406-9e73-7aa5-956ffae7074b@gmail.com>
In-Reply-To
<CAPx1Gvc6ci1CjhL-zjwqkR=4o2yQTrT0V_Hb9bUBNuaBn47M8A@mail.gmail.com>
On 7/22/22 10:40 AM, Chris Torek wrote:
Show 12 quoted lines
> On Fri, Jul 22, 2022 at 6:24 AM David Chmelik <dchmelik@gmail.com 
> <mailto:dchmelik@gmail.com>> wrote:
>
>     Ownership, permissions are different: one can own files yet have zero
>     permission to write/delete and be denied that. ...
>
>
> All true.  But Git has no control over, or affect on these: Git does
> not attempt to affect ownership or permission of any build products
> at all.  Git only attempts to affect the execute permission of
> specific files as directed by the committed file mode (and provided
> `core.filemode` is enabled).

Not even projects' .git* subdirectories?  They typically are/become user-non-writable though deletable with several/many confirmations so I usually sudo (recommended against).  I'd rather opt-out of .git* subdirectories for every clone.

> [...] If you're using Samba/CIFS or other ACL-based file servers [...]

I don't know what those are (other than once tried Samba to transfer files between home PCs, not for compiling).

Previous: Đoàn Trần Công DanhNext: Chris Torek
Message 5 of 8 in “'git clone,' build makes user non-writable files (should be option keep user-writable)”
  1. David ChmelikJul 15, 2022
  2. Beat BolliJul 17, 2022
  3. David ChmelikJul 22, 2022
  4. Đoàn Trần Công DanhJul 23, 2022
  5. David ChmelikJul 23, 2022
  6. Chris TorekJul 23, 2022
  7. David ChmelikAug 2, 2022
  8. David ChmelikAug 9, 2022

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.