From d65b9532522164ef1c1b70a2007c83bd44861f20 Mon Sep 17 00:00:00 2001 From: dennis zhuang Date: Thu, 13 Sep 2012 15:12:19 -0700 Subject: [PATCH] Get branch name with --no-color option --- src/repository/api/ArcanistGitAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {