Re: Git clone reads safe.directory differently?
- From
Jeff King <peff@peff.net>
- Date
- Jul 27, 2024, 21:58 UTC
- Message-ID
- <20240727215845.GA1263246@coredump.intra.peff.net>
- In-Reply-To
- <ZqUc8DJ1uKcHYlcy@imp.flyn.org>
On Sat, Jul 27, 2024 at 11:14:40AM -0500, W. Michael Petullo wrote:
> Glen Choo's commit 6061601d modified Git so that safe.directory could > be set on the command line using "-c". It seems most sub-commands work > this way, but not "clone". Here is an example:
This is because upload-pack, the server half of a fetch/clone, is run as a separate process which does not accept the client-side "-c" options. See this email for more details and a workaround:
https://lore.kernel.org/git/20240529102307.GF1098944@coredump.intra.peff.net/
-Peff