mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 21:16:54 +00:00
Fix file wrong file permissions in Git hook.
This commit is contained in:
parent
a7be77f761
commit
7fb1bc87a9
1 changed files with 1 additions and 0 deletions
|
|
@ -152,6 +152,7 @@ def copy_file_to(destination_directory, filepath, contents):
|
|||
temporary_filepath = os.path.join(temporary_directory, filename)
|
||||
with open(temporary_filepath, "wb") as fd:
|
||||
fd.write(contents)
|
||||
shutil.copystat(filepath, temporary_filepath)
|
||||
return temporary_filepath
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue