Skip to content

Commit 950e806

Browse files
authored
Merge pull request #927 from pre-commit/py38-shlex-join
shlex.join is always available in 3.8+
2 parents aa54f0d + e432efb commit 950e806

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pre_commit_hooks/destroyed_symlinks.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ def main(argv: Sequence[str] | None = None) -> int:
7676
for destroyed_link in destroyed_links:
7777
print(f'- {destroyed_link}')
7878
print('You should unstage affected files:')
79-
print(
80-
'\tgit reset HEAD -- {}'.format(
81-
' '.join(shlex.quote(link) for link in destroyed_links),
82-
),
83-
)
79+
print(f'\tgit reset HEAD -- {shlex.join(destroyed_links)}')
8480
print(
8581
'And retry commit. As a long term solution '
8682
'you may try to explicitly tell git that your '

0 commit comments

Comments
 (0)