From: dennis zhuang Date: Thu, 13 Sep 2012 22:12:19 +0000 (-0700) Subject: Get branch name with --no-color option X-Git-Tag: conduit-6~125^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d65b9532522164ef1c1b70a2007c83bd44861f20;p=arcanist.git Get branch name with --no-color option --- diff --git a/src/repository/api/ArcanistGitAPI.php b/src/repository/api/ArcanistGitAPI.php index e92244b9..d9b8465d 100644 --- a/src/repository/api/ArcanistGitAPI.php +++ b/src/repository/api/ArcanistGitAPI.php @@ -336,7 +336,7 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI { // $ git rev-parse --abbrev-ref `git symbolic-ref HEAD` // // But that may fail if you're not on a branch. - list($stdout) = $this->execxLocal('branch'); + list($stdout) = $this->execxLocal('branch --no-color'); $matches = null; if (preg_match('/^\* (.+)$/m', $stdout, $matches)) {