]> khamidou — GitHub mirrors - arcanist.git/commit
Use a temporary file to execute `arc patch`
authorepriestley <git@epriestley.com>
Fri, 31 May 2013 04:03:21 +0000 (21:03 -0700)
committerepriestley <git@epriestley.com>
Fri, 31 May 2013 04:03:21 +0000 (21:03 -0700)
commitae66d4caa91a76a17aa2f3a32b042734215e4a92
tree0c44965659a7e4a23e28dd6a46e5fc536a0fe2c0
parent50419e584d5cdf28cf5533c3501ed40734533fa1
Use a temporary file to execute `arc patch`

Summary:
Piping data around on Windows doesn't work well when it contains zany characters like "null" and "newline". Fixes T3266.

Instead of piping data into `git apply`, write to a temporary file.

Test Plan:
Ran `arc patch`, got good results.

  >>> [17] <exec> $ git apply --index --reject -- '/private/var/folders/8k/c3vkmjy5335gcxdzxkhwq82w0000gn/T/7z9iea6srikoo0sc/4266-ZEyvz9'

Reviewers: btrahan, hach-que

Reviewed By: hach-que

CC: aran
Maniphest Tasks: T3266

Differential Revision: https://secure.phabricator.com/D6070
src/lint/linter/ArcanistJSHintLinter.php
src/repository/api/ArcanistGitAPI.php
src/repository/api/ArcanistMercurialAPI.php
src/workflow/ArcanistPatchWorkflow.php