Fixed merge bug

This commit is contained in:
Dennis Eichhorn 2016-08-20 14:14:48 +02:00
parent a7e337b153
commit 5f8949cba6

View File

@ -853,6 +853,10 @@ class Repository
throw new \Exception('Invalid commit id');
}
if(StringUtils::startsWith($lines[1], 'Merge')) {
return new Commit();
}
// todo: validate if array values are all initialized
$author = explode(':', $lines[1]);
$author = explode('<', trim($author[1]));