1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-09-20 08:58:55 +02:00

Merge pull request #52 from killme2008/master

Fixed git branch name contains color
This commit is contained in:
Evan Priestley 2012-09-13 16:35:16 -07:00
commit f5bb4177c3

View 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)) {