mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 20:36:38 -04:00
Rename GitCommit::FromLogLine and have it accept the full line
This commit is contained in:
parent
e9cf55b53f
commit
df8eac6f82
2 changed files with 6 additions and 4 deletions
|
@ -690,9 +690,8 @@ class Ebook{
|
|||
$historyEntries = explode("\n", shell_exec('cd ' . escapeshellarg($ebookFromFilesystem->RepoFilesystemPath) . ' && git log -n5 --pretty=format:"%ct %H %s"'));
|
||||
|
||||
$gitCommits = [];
|
||||
foreach($historyEntries as $entry){
|
||||
$array = explode(' ', $entry, 3);
|
||||
$gitCommits[] = GitCommit::FromLog($array[0], $array[1], $array[2]);
|
||||
foreach($historyEntries as $logLine){
|
||||
$gitCommits[] = GitCommit::FromLogLine($logLine);
|
||||
}
|
||||
$ebookFromFilesystem->GitCommits = $gitCommits;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue