From ec948a276d86101176a42db4b6d762ffd0773334 Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Thu, 21 Aug 2014 16:07:00 -0700 Subject: [PATCH] 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 --- src/repository/api/ArcanistGitAPI.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }