git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git 2.45.1 - What is the right way to clone with global hooks disabled?
@ 2024-05-15 15:53 Brooke Kuhlmann
  2024-05-15 22:25 ` brian m. carlson
  2024-05-16 12:13 ` Johannes Schindelin
  0 siblings, 2 replies; 7+ messages in thread
From: Brooke Kuhlmann @ 2024-05-15 15:53 UTC (permalink / raw)
  To: git

Hello. 👋

With the release of Git 2.45.1, I can no longer do this when cloning trusted repositories (my own) for build and deployment purposes:

git clone --config core.hooksPath=/dev/null https://github.com/bkuhlmann/infusible

I have automation in place where I want my global Git Hooks to be ignored when cloning like this. The solution is to do this:

GIT_CLONE_PROTECTION_ACTIVE=false git clone --config core.hooksPath=/dev/null https://github.com/bkuhlmann/infusible

...but is there a better, more secure, way to clone a repository while ignoring any global Git Hooks from firing without a lot of effort?

Thanks.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-17 13:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-15 15:53 Git 2.45.1 - What is the right way to clone with global hooks disabled? Brooke Kuhlmann
2024-05-15 22:25 ` brian m. carlson
2024-05-16 14:59   ` Junio C Hamano
2024-05-16 12:13 ` Johannes Schindelin
2024-05-16 13:05   ` Brooke Kuhlmann
2024-05-16 14:56   ` Junio C Hamano
2024-05-17 13:08     ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).