]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Arcanist - potentially fix some Windows badness
authorBob Trahan <btrahan@phacility.com>
Thu, 21 Aug 2014 23:07:00 +0000 (16:07 -0700)
committerBob Trahan <btrahan@phacility.com>
Thu, 21 Aug 2014 23:07:00 +0000 (16:07 -0700)
Summary: Fixes T5914, maybs.

Test Plan: will ask users in T5914

Reviewers: chad, epriestley

Reviewed By: chad, epriestley

Subscribers: chad, bluehawk, epriestley, Korvin

Maniphest Tasks: T5914

Differential Revision: https://secure.phabricator.com/D10333

src/repository/api/ArcanistGitAPI.php

index dca9fbfd3834572f56748368db68b695ef02ce7a..11a367421e2f7af4428585bf49b50c7036b6728a 100644 (file)
@@ -535,7 +535,9 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI {
       $stdout = $this->getHashFromFromSVNRevisionNumber($match[1]);
     } else {
       list($stdout) = $this->execxLocal(
-        'show -s --format=%s %s --',
+        phutil_is_windows()
+        ? 'show -s --format=%C %s --'
+        : 'show -s --format=%s %s --',
         '%H',
         $string);
     }