Re: 'safe.directory' setting ignored for some operations?
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Apr 10, 2025, 22:13 UTC
- Message-ID
- <Z_hCjfoRUIDZoBfP@tapette.crustytoothpaste.net>
- In-Reply-To
- <20250410213542.GA3168175@coredump.intra.peff.net>
On 2025-04-10 at 21:35:42, Jeff King wrote:
Show 9 quoted lines
> 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.
-- brian m. carlson (they/them) Toronto, Ontario, CA