3 # Call `tidy --bless` before each commit
4 # Copy this scripts to .git/hooks to activate,
5 # and remove it from .git/hooks to deactivate.
10 ROOT_DIR="$(git rev-parse --show-toplevel)";
11 COMMAND="$ROOT_DIR/x.py test tidy --bless";
13 if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
14 COMMAND="python $COMMAND"
17 echo "Running pre-commit script '$COMMAND'";