Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14756650
D16273.id39145.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
857 B
Referenced Files
None
Subscribers
None
D16273.id39145.diff
View Options
diff --git a/src/lint/ArcanistLintPatcher.php b/src/lint/ArcanistLintPatcher.php
--- a/src/lint/ArcanistLintPatcher.php
+++ b/src/lint/ArcanistLintPatcher.php
@@ -42,11 +42,19 @@
// supported under OSX.
if (Filesystem::pathExists($path)) {
// This path may not exist if we're generating a new file.
- execx('cp -p %s %s', $path, $lint);
+ if (phutil_is_windows()) {
+ execx('copy %s %s', $path, $lint);
+ } else {
+ execx('cp -p %s %s', $path, $lint);
+ }
}
Filesystem::writeFile($lint, $data);
- list($err) = exec_manual('mv -f %s %s', $lint, $path);
+ if (phutil_is_windows()) {
+ list($err) = exec_manual('move /Y %s %s', $lint, $path);
+ } else {
+ list($err) = exec_manual('mv -f %s %s', $lint, $path);
+ }
if ($err) {
throw new Exception(
pht(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 8:13 PM (12 h, 32 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7035376
Default Alt Text
D16273.id39145.diff (857 B)
Attached To
Mode
D16273: Use phutil functions to copy/move files
Attached
Detach File
Event Timeline
Log In to Comment