Page MenuHomePhabricator

D18518.diff
No OneTemporary

D18518.diff

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

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)

Event Timeline