From: Jeff King Date: Thu, 10 Apr 2025 22:42:23 GMT Subject: Re: 'safe.directory' setting ignored for some operations? Message-ID: <20250410224223.GA3191424@coredump.intra.peff.net> In-Reply-To: On Thu, Apr 10, 2025 at 10:13:33PM +0000, brian m. carlson wrote: > On 2025-04-10 at 21:35:42, Jeff King wrote: > > So I think things are working as intended. You can get around it with > > either of these: > > > > - set the config in your user ~/.gitconfig, which will be read by the > > child upload-pack command > > > > - tell clone to pass the config to upload-pack, like: > > > > git clone -u 'git -c safe.directory="*" upload-pack' ... > > I think you can also use `git clone --no-local` in a more recent version > and the normal clone-from-untrusted-repository semantics will kick in > and things will work. Yeah, that's true in v2.48.0 and later. (I tried it after writing the earlier email and was a little puzzled that it works with --no-local but not otherwise, but it sounds like that's known). -Peff