3 ms·
After reading the responses to my previous question, I'd like to know if there's a global way to turn off post-checkout hooks. None of the use-cases I read are
by jancsika 8y ago
After reading the responses to my previous question, I'd like to know if there's a global way to turn off post-checkout hooks.
None of the use-cases I read are convincing enough to allow `git clone` to do anything but what its short man description says.
I'm not even thinking about security, just basic separation of concerns. If `git clone` leaves a script-hooked repo in an unusable state for building, I want to know up front so I can complain to the maintainer and get that problem fixed.
- ameliaquining 8y agoHooks aren't part of the repo. The only way your copy of a repo will have hooks is if you put them there.
- Piskvorrr 8y agoNot if you `git clone --recursive` an evil repo with anything < 2.17.1 (which is the point of the article and the reason of this discussion): then your copy will have hooks that you have not put in.