mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-02-09 05:18:29 +01:00
Merge pull request #52 from killme2008/master
Fixed git branch name contains color
This commit is contained in:
commit
f5bb4177c3
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI {
|
||||||
// $ git rev-parse --abbrev-ref `git symbolic-ref HEAD`
|
// $ git rev-parse --abbrev-ref `git symbolic-ref HEAD`
|
||||||
//
|
//
|
||||||
// But that may fail if you're not on a branch.
|
// 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;
|
$matches = null;
|
||||||
if (preg_match('/^\* (.+)$/m', $stdout, $matches)) {
|
if (preg_match('/^\* (.+)$/m', $stdout, $matches)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue