Skip to content

Commit 53109a0

Browse files
paulhfischerasottile
authored andcommitted
fixed message if repo couldn't be updated due to missing hook(s)
1 parent 099213f commit 53109a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)