Git development
 help / color / mirror / Atom feed
From: "Michal Suchánek" <msuchanek@suse.de>
To: Hadmut Danisch <hadmut@danisch.de>
Cc: git@vger.kernel.org
Subject: Re: Git destroys u+s and g+s directory modes
Date: Sat, 27 Dec 2025 14:56:57 +0100	[thread overview]
Message-ID: <aU_lqe2Z47STv68O@kitsune.suse.cz> (raw)
In-Reply-To: <eb36360d-f539-4f77-b175-57330ef05eac@danisch.de>

On Sat, Dec 27, 2025 at 03:37:51AM +0100, Hadmut Danisch wrote:
> 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

  reply	other threads:[~2025-12-27 13:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-27  2:37 Git destroys u+s and g+s directory modes Hadmut Danisch
2025-12-27 13:56 ` Michal Suchánek [this message]
2025-12-27 14:27   ` rsbecker
2025-12-27 14:40     ` Hadmut Danisch
2025-12-27 15:12       ` Andreas Schwab
2025-12-27 15:19       ` rsbecker
2025-12-27 21:49       ` Gabor Gombas
2025-12-27 14:44   ` Hadmut Danisch
2026-01-02  7:55 ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aU_lqe2Z47STv68O@kitsune.suse.cz \
    --to=msuchanek@suse.de \
    --cc=git@vger.kernel.org \
    --cc=hadmut@danisch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox