Use shutil.copy2 instead of shutil.copyfile for git_helper.py

Probably fixes #541
This commit is contained in:
Pieter-Jan Briers
2020-01-22 17:05:32 +01:00
parent 930fb331db
commit 36cf1c3179

View File

@@ -83,7 +83,7 @@ def install_hooks():
for filename in os.listdir(str(hooks_source_dir)):
print("Copying hook {}".format(filename))
shutil.copyfile(str(hooks_source_dir/filename),
shutil.copy2(str(hooks_source_dir/filename),
str(hooks_target_dir/filename))