Use shutil.copy2 instead of shutil.copyfile for git_helper.py
Probably fixes #541
This commit is contained in:
@@ -83,7 +83,7 @@ def install_hooks():
|
|||||||
|
|
||||||
for filename in os.listdir(str(hooks_source_dir)):
|
for filename in os.listdir(str(hooks_source_dir)):
|
||||||
print("Copying hook {}".format(filename))
|
print("Copying hook {}".format(filename))
|
||||||
shutil.copyfile(str(hooks_source_dir/filename),
|
shutil.copy2(str(hooks_source_dir/filename),
|
||||||
str(hooks_target_dir/filename))
|
str(hooks_target_dir/filename))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user