all.js file (without Google’s Closure Compiler) and am then using
uglify-js to minify and obfuscate the code. I’d like to do all of this in a pre-commit hook.
However, I think I’m doing something wrong.
.git/hooks/pre-commit file looks like this:
Should I not be using simple Bash here? Is there something else I’m doing wrong? This step seems to be skipped entirely.
My psychic powers suggest that your script isn’t executable; try doing
chmod +x .git/hooks/pre-commit
Answered By – offby1