Re: Git destroys u+s and g+s directory modes
From: Hadmut Danisch <hidden>
Date: 2025-12-27 14:44:11
From: Hadmut Danisch <hidden>
Date: 2025-12-27 14:44:11
On Sat, Dec 27, 2025 at 02:56:57PM +0100, Michal Suchánek wrote:
When you want it to be readable you do not need any special permission bits. You can set the directories and files to be readable by group, and ensure the container user is part of the group.
And that's the problem: "ensure the container user is part of the group" is what the S_ISGID flag on directories is good for: It ensures that newly created directories inherit their parent's group. Unix administration basics. And this is the bit git clears and breaks this mechanism. regards Hadmut