From: Bob Trahan Date: Thu, 21 Aug 2014 23:07:00 +0000 (-0700) Subject: Arcanist - potentially fix some Windows badness X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ec948a276d86101176a42db4b6d762ffd0773334;p=arcanist.git Arcanist - potentially fix some Windows badness 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 --- diff --git a/src/repository/api/ArcanistGitAPI.php b/src/repository/api/ArcanistGitAPI.php index dca9fbfd..11a36742 100644 --- a/src/repository/api/ArcanistGitAPI.php +++ b/src/repository/api/ArcanistGitAPI.php @@ -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); }