Git 2.45.1 - What is the right way to clone with global hooks disabled?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux