Warning, /harvester/git_hooks/pre-commit.d/a10-run_pre-commit is written in an unsupported language. File is not indexed.
0001 #!/usr/bin/env bash
0002
0003 # start templated
0004 INSTALL_PYTHON=/usr/bin/python3
0005 ARGS=(hook-impl --config=.pre-commit-config.yaml --hook-type=pre-commit)
0006 # end templated
0007
0008 HERE="$(cd "$(dirname "$0")" && pwd)"
0009 ARGS+=(--hook-dir "$HERE" -- "$@")
0010
0011 if [ -x "$INSTALL_PYTHON" ]; then
0012 exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
0013 elif command -v pre-commit > /dev/null; then
0014 exec pre-commit "${ARGS[@]}"
0015 else
0016 echo '`pre-commit` not found. Skipped...' 1>&2
0017 fi