Re: Git destroys u+s and g+s directory modes
- From
Michal Suchánek <msuchanek@suse.de>
- Date
- Dec 27, 2025, 13:56 UTC
- Message-ID
- <aU_lqe2Z47STv68O@kitsune.suse.cz>
- In-Reply-To
- <eb36360d-f539-4f77-b175-57330ef05eac@danisch.de>
On Sat, Dec 27, 2025 at 03:37:51AM +0100, Hadmut Danisch wrote:
Show 12 quoted lines
> Hi, > > (please respond to my e-mail as well, not just to the list, I'm not > subscribed), > > > I do have a problem with git 2.43.0 (ubuntu server 24.04.3) and directory > modes: > > > I do need my git repo (owned by me) to be readable by a system user (running > a rootless podman container).
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.
You are porbably looking for core.sharedRepository configuration option.
If git is particularly unhappy accessing a readonly repository and the container is short-lived you can add an overlay over the repository when creating the container.
HTH
Michal