Loading .config/git/template/hooks/post-checkoutdeleted 100755 → 0 +0 −20 Original line number Diff line number Diff line #!/usr/bin/env bash # File generated by pre-commit: https://pre-commit.com # ID: 138fd403232d2ddd5efb44317e38bf03 # start templated INSTALL_PYTHON=/usr/local/bin/python ARGS=(hook-impl --config=.pre-commit-config.yaml --hook-type=post-checkout --skip-on-missing-config) # end templated HERE="$(cd "$(dirname "$0")" && pwd)" ARGS+=(--hook-dir "$HERE" -- "$@") if [ -x "$INSTALL_PYTHON" ]; then exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}" elif command -v pre-commit > /dev/null; then exec pre-commit "${ARGS[@]}" else echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2 exit 1 fi .gitlab-ci.yml +0 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,6 @@ Update Pre-Commit Hooks: --hook-type pre-push --hook-type prepare-commit-msg --hook-type commit-msg --hook-type post-checkout "${TEMPLATE_DIR/'~'/$PWD}" - git add "${TEMPLATE_DIR/'~'/$PWD}" - git_commit "Update pre-commit hooks" Loading
.config/git/template/hooks/post-checkoutdeleted 100755 → 0 +0 −20 Original line number Diff line number Diff line #!/usr/bin/env bash # File generated by pre-commit: https://pre-commit.com # ID: 138fd403232d2ddd5efb44317e38bf03 # start templated INSTALL_PYTHON=/usr/local/bin/python ARGS=(hook-impl --config=.pre-commit-config.yaml --hook-type=post-checkout --skip-on-missing-config) # end templated HERE="$(cd "$(dirname "$0")" && pwd)" ARGS+=(--hook-dir "$HERE" -- "$@") if [ -x "$INSTALL_PYTHON" ]; then exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}" elif command -v pre-commit > /dev/null; then exec pre-commit "${ARGS[@]}" else echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2 exit 1 fi
.gitlab-ci.yml +0 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,6 @@ Update Pre-Commit Hooks: --hook-type pre-push --hook-type prepare-commit-msg --hook-type commit-msg --hook-type post-checkout "${TEMPLATE_DIR/'~'/$PWD}" - git add "${TEMPLATE_DIR/'~'/$PWD}" - git_commit "Update pre-commit hooks"