Skip to content

Commit

Permalink
Merge pull request #1809 from JamMarHer/patch-1
Browse files Browse the repository at this point in the history
Instruct users how to prevent a warning.
  • Loading branch information
asottile committed Feb 24, 2021
2 parents 616249e + 3d31858 commit f2dffc5
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 f2dffc5

Please sign in to comment.