Invalid branch name
knobik opened this issue · comments
When im using
$branches = $repository->getBranches(false, true);
im getting this error
the branch string is not valid: remotes/origin/HEAD -> origin/master
/vendor/cypresslab/gitelephant/src/GitElephant/Objects/Branch.php:199
public static function getMatches($branchString)
{
$matches = array();
preg_match('/^\*?\ *?(\S+)\ +(\S{40})\ +(.+)$/', trim($branchString), $matches);
if (!count($matches)) {
throw new \InvalidArgumentException(sprintf('the branch string is not valid: %s', $branchString));
}
The corresponding code has been altered in the meantime. Is this error still reproducible?