mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-11 21:54:16 +00:00
Merge pull request #927 from pre-commit/py38-shlex-join
shlex.join is always available in 3.8+
This commit is contained in:
commit
950e8063e1
1 changed files with 1 additions and 5 deletions
|
|
@ -76,11 +76,7 @@ def main(argv: Sequence[str] | None = None) -> int:
|
||||||
for destroyed_link in destroyed_links:
|
for destroyed_link in destroyed_links:
|
||||||
print(f'- {destroyed_link}')
|
print(f'- {destroyed_link}')
|
||||||
print('You should unstage affected files:')
|
print('You should unstage affected files:')
|
||||||
print(
|
print(f'\tgit reset HEAD -- {shlex.join(destroyed_links)}')
|
||||||
'\tgit reset HEAD -- {}'.format(
|
|
||||||
' '.join(shlex.quote(link) for link in destroyed_links),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
print(
|
print(
|
||||||
'And retry commit. As a long term solution '
|
'And retry commit. As a long term solution '
|
||||||
'you may try to explicitly tell git that your '
|
'you may try to explicitly tell git that your '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue