Can someone share a “origin” side hook that checks if the received commit introduces a wrong whitespace character (in my case tab) and rejects that push?
I can’t do it pre-commit because I have people on the team who are, well… oh, nevermind. 😉
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The right place to do this is the
updatehook. I haven’t tested it, but something like this should work: