3 # Copy this hook to .git/hooks/pre-commit
4 # Called by "git commit" with no arguments. The hook should
5 # exit with non-zero status after issuing an appropriate message if
6 # it wants to stop the commit.
11 path
=$
(git rev-parse
--show-toplevel)
13 # If we try to commit po files, check that they do not contain errors.
14 if ! "${path}/submodules/jenkins-tools/slaves/lint_po" --cached; then
16 echo "The po files you're trying to commit contain errors. Please fix them and try again."