You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pre-commit assumes that the value of rev is an immutable ref (such as a tag or SHA) and will cache based on that. Using a branch name (or HEAD) for the value of rev is not supported and will only represent the state of that mutable ref at the time of hook installation (and will NOT update automatically).
and print the SHA hash of the latest commit on that branch instead, for easier copy/pasting.
https://pre-commit.com/#using-the-latest-version-for-a-repository
You should explicitly check for that and warn people (or error) instead of expecting them to read the docs. This repo makes that mistake for example https://github.com/doublify/pre-commit-clang-format
The text was updated successfully, but these errors were encountered: