Calendar: remove past event
[tails/test.git] / bin / pre-commit-translation
blob965322525223575d9764b98b67d7de59494dba40
1 #!/bin/sh
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.
8 set -e
9 set -u
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
15 echo
16 echo "The po files you're trying to commit contain errors. Please fix them and try again."
17 echo
18 exit 1