mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
Better error handling in the commit log
This commit is contained in:
@@ -333,6 +333,10 @@ class Repository
|
||||
$commit->importData($data);
|
||||
unset($logs[0]);
|
||||
|
||||
if (empty($logs[1])) {
|
||||
throw new \RuntimeException('No commit log available');
|
||||
}
|
||||
|
||||
// Read diff logs
|
||||
foreach ($logs as $log) {
|
||||
if ('diff' === substr($log, 0, 4)) {
|
||||
|
||||
Reference in New Issue
Block a user