mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[WINESYNC] When initially reverting wine-staging patches, ignore whitespace.
This fixes in particular problems when reverting created new files (i.e. they are deleted). I suspect this is due to an endline-format "expectation" from the git apply command.
This commit is contained in:
parent
1d92196d2a
commit
32b81a9157
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ class wine_sync:
|
|||
|
||||
with open(patch_path, 'rb') as patch_file:
|
||||
try:
|
||||
subprocess.run(['git', '-C', self.reactos_src, 'apply', '-R', '--reject'], stdin=patch_file, check=True)
|
||||
subprocess.run(['git', '-C', self.reactos_src, 'apply', '-R', '--ignore-whitespace', '--reject'], stdin=patch_file, check=True)
|
||||
except subprocess.CalledProcessError as err:
|
||||
print(f'Error while reverting patch {patch_file_name}')
|
||||
print('Please check, remove the offending patch with git rm, and relaunch this script')
|
||||
|
|
Loading…
Reference in a new issue