Skip to content

Commit

Permalink
Instruct users how to prevent a mutable rev in repo warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamMarHer authored and asottile committed Feb 24, 2021
1 parent d7b189c commit 3d31858
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pre_commit/clientlib.py
Expand Up @@ -128,7 +128,8 @@ def check(self, dct: Dict[str, Any]) -> None:
f'(moving tag / branch). Mutable references are never '
f'updated after first install and are not supported. '
f'See https://pre-commit.com/#using-the-latest-version-for-a-repository ' # noqa: E501
f'for more details.',
f'for more details. '
f'Hint: `pre-commit autoupdate` often fixes this.',
)


Expand Down
3 changes: 2 additions & 1 deletion tests/clientlib_test.py
Expand Up @@ -228,7 +228,8 @@ def test_warn_mutable_rev_invalid(caplog, rev):
'Mutable references are never updated after first install and are '
'not supported. '
'See https://pre-commit.com/#using-the-latest-version-for-a-repository ' # noqa: E501
'for more details.',
'for more details. '
'Hint: `pre-commit autoupdate` often fixes this.',
),
]

Expand Down

0 comments on commit 3d31858

Please sign in to comment.