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
{{ message }}
Repository navigation
Commit 2f73d5f
Browse filesBrowse the repository at this point in the historyBrowse files
Pin each rev to the commit SHA of its current tag with a "# frozen: <tag>"
comment so Renovate updates both the SHA and the tag.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ pre-commit install
20
20
21
21
`default_install_hook_types` in the config makes `pre-commit install` set up both the `pre-commit` and the `commit-msg` hook, so no extra flags are needed. Repositories that ran `pre-commit install` before the `commit-msg` hook was added need to run it once more.
22
22
23
-
After copying, Renovate (`:enablePreCommit`) keeps each repository's `rev` values up to date.
23
+
After copying, Renovate (`:enablePreCommit`) keeps each repository's `rev` values up to date. Each `rev` is pinned to a commit SHA with a `# frozen: <tag>` comment, and Renovate updates both the SHA and the tag. A bare SHA without the comment is treated as a version and is not updated correctly, so keep the comment when adding a hook. `pre-commit autoupdate --freeze` writes the same format.
0 commit comments