mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-23 22:10:54 +01:00
Get branch name with --no-color option
This commit is contained in:
parent
7ee0f3e3b3
commit
d65b953252
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`
|
||||
//
|
||||
// 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)) {
|
||||
|
|
Loading…
Reference in a new issue