]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Get branch name with --no-color option
authordennis zhuang <killme2008@gmail.com>
Thu, 13 Sep 2012 22:12:19 +0000 (15:12 -0700)
committerdennis zhuang <killme2008@gmail.com>
Thu, 13 Sep 2012 22:12:19 +0000 (15:12 -0700)
src/repository/api/ArcanistGitAPI.php

index e92244b908242dc1d4ff0242dfabf9afd8d4c25d..d9b8465d7ef31501533d560c253c9bde0d30e4d6 100644 (file)
@@ -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)) {