From: Hadmut Danisch Date: Sat, 27 Dec 2025 14:44:09 GMT Subject: Re: Git destroys u+s and g+s directory modes Message-ID: In-Reply-To: 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