Skip to content

Commit

Permalink
Force pre-commit hook installation
Browse files Browse the repository at this point in the history
Using this option results in `pre-commit` writing to
`.git/hooks/pre-commit` even if it already exists.
  • Loading branch information
mcdonnnj committed Oct 16, 2024
1 parent f0e55b3 commit b4f640b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup-env
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ for req_file in "requirements-dev.txt" "requirements-test.txt" "requirements.txt
fi
done

# Install git pre-commit hooks now or later.
pre-commit install ${INSTALL_HOOKS:+"--install-hooks"}
# Force installation of the git hook and install pre-commit hooks now or later.
pre-commit install --overwrite ${INSTALL_HOOKS:+"--install-hooks"}

# Setup git remotes from lineage configuration
# This could fail if the remotes are already setup, but that is ok.
Expand Down

0 comments on commit b4f640b

Please sign in to comment.