Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2dffc5

Browse files
authored
Merge pull request #1809 from JamMarHer/patch-1
Instruct users how to prevent a warning.
2 parents 616249e + 3d31858 commit f2dffc5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

pre_commit/clientlib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ def check(self, dct: Dict[str, Any]) -> None:
128128
f'(moving tag / branch). Mutable references are never '
129129
f'updated after first install and are not supported. '
130130
f'See https://pre-commit.com/#using-the-latest-version-for-a-repository ' # noqa: E501
131-
f'for more details.',
131+
f'for more details. '
132+
f'Hint: `pre-commit autoupdate` often fixes this.',
132133
)
133134

134135

tests/clientlib_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ def test_warn_mutable_rev_invalid(caplog, rev):
228228
'Mutable references are never updated after first install and are '
229229
'not supported. '
230230
'See https://pre-commit.com/#using-the-latest-version-for-a-repository ' # noqa: E501
231-
'for more details.',
231+
'for more details. '
232+
'Hint: `pre-commit autoupdate` often fixes this.',
232233
),
233234
]
234235

0 commit comments

Comments
 (0)