diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-16 11:18:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-16 11:18:13 +0000 |
commit | 535187ceaf88786aaf22560790564f1f6965ba30 (patch) | |
tree | 82456c5d0bc77961759812ddd85414435ba89127 /pre_commit_hooks/destroyed_symlinks.py | |
parent | Adding upstream version 4.4.0+dfsg. (diff) | |
download | pre-commit-hooks-2d21e3373e8f3a54d039edf15b68580041f810a5.tar.xz pre-commit-hooks-2d21e3373e8f3a54d039edf15b68580041f810a5.zip |
Adding upstream version 4.5.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit_hooks/destroyed_symlinks.py')
-rw-r--r-- | pre_commit_hooks/destroyed_symlinks.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pre_commit_hooks/destroyed_symlinks.py b/pre_commit_hooks/destroyed_symlinks.py index 88253c0..f256908 100644 --- a/pre_commit_hooks/destroyed_symlinks.py +++ b/pre_commit_hooks/destroyed_symlinks.py @@ -76,11 +76,7 @@ def main(argv: Sequence[str] | None = None) -> int: for destroyed_link in destroyed_links: print(f'- {destroyed_link}') print('You should unstage affected files:') - print( - '\tgit reset HEAD -- {}'.format( - ' '.join(shlex.quote(link) for link in destroyed_links), - ), - ) + print(f'\tgit reset HEAD -- {shlex.join(destroyed_links)}') print( 'And retry commit. As a long term solution ' 'you may try to explicitly tell git that your ' |