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

Skip to content

Commit 6e37f19

Browse files
authored
Merge pull request #1709 from paulhfischer/fix_missing_hooks_autoupdate_message
fixed message if repo couldn't be updated due to missing hook(s)
2 parents 099213f + 53109a0 commit 6e37f19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pre_commit/commands/autoupdate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def _check_hooks_still_exist_at_rev(
7979
hooks_missing = hooks - {hook['id'] for hook in manifest}
8080
if hooks_missing:
8181
raise RepositoryCannotBeUpdatedError(
82-
f'Cannot update because the tip of HEAD is missing these hooks:\n'
83-
f'{", ".join(sorted(hooks_missing))}',
82+
f'Cannot update because the update target is missing these '
83+
f'hooks:\n{", ".join(sorted(hooks_missing))}',
8484
)
8585

8686

0 commit comments

Comments
 (0)