diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-08-30 11:22:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-08-30 11:22:57 +0000 |
commit | 16e677e925131974acbd67131124e11301d127b4 (patch) | |
tree | dc6734c39114c88aeeeb6b72c46b141489cd66f5 /pre_commit/commands/install_uninstall.py | |
parent | Releasing debian version 2.6.0-1. (diff) | |
download | pre-commit-16e677e925131974acbd67131124e11301d127b4.tar.xz pre-commit-16e677e925131974acbd67131124e11301d127b4.zip |
Merging upstream version 2.7.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/commands/install_uninstall.py')
-rw-r--r-- | pre_commit/commands/install_uninstall.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py index c8b7633..85fa53c 100644 --- a/pre_commit/commands/install_uninstall.py +++ b/pre_commit/commands/install_uninstall.py @@ -165,7 +165,7 @@ def _uninstall_hook_script(hook_type: str) -> None: output.write_line(f'{hook_type} uninstalled') if os.path.exists(legacy_path): - os.rename(legacy_path, hook_path) + os.replace(legacy_path, hook_path) output.write_line(f'Restored previous hooks to {hook_path}') |