Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15432658
D18518.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
822 B
Referenced Files
None
Subscribers
None
D18518.diff
View Options
diff --git a/src/workflow/ArcanistVersionWorkflow.php b/src/workflow/ArcanistVersionWorkflow.php
--- a/src/workflow/ArcanistVersionWorkflow.php
+++ b/src/workflow/ArcanistVersionWorkflow.php
@@ -51,8 +51,14 @@
pht('%s is not a git working copy.', $lib));
}
- list($stdout) = $repository->execxLocal('log -1 --format=%s', '%H %ct');
- list($commit, $timestamp) = explode(' ', $stdout);
+ // NOTE: Carefully execute these commands in a way that works on Windows
+ // until T8298 is properly fixed. See PHI52.
+
+ list($commit) = $repository->execxLocal('log -1 --format=%%H');
+ $commit = trim($commit);
+
+ list($timestamp) = $repository->execxLocal('log -1 --format=%%ct');
+ $timestamp = trim($timestamp);
$console->writeOut(
"%s %s (%s)\n",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 25, 7:10 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7711103
Default Alt Text
D18518.diff (822 B)
Attached To
Mode
D18518: Cheat our way through `arc version` on Windows for the moment
Attached
Detach File
Event Timeline
Log In to Comment