mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 06:10:36 -04:00
Fix bug in GitHub web hook
This commit is contained in:
parent
55cfad42db
commit
63c86973ed
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ try{
|
|||
Logger::WriteGithubWebhookLogEntry($requestId, 'Processing ebook "' . $repoName . '" located at "' . $dir . '".');
|
||||
|
||||
// Check the local repo's last commit. If it matches this push, then don't do anything; we're already up to date.
|
||||
$lastCommitSha1 = trim(shell_exec('git -C ' . escapeshellarg($dir) . ' rev-parse HEAD 2>&1; echo $?') ?? '');
|
||||
$lastCommitSha1 = trim(shell_exec('git -C ' . escapeshellarg($dir) . ' rev-parse HEAD 2>&1') ?? '');
|
||||
|
||||
if($lastCommitSha1 == ''){
|
||||
Logger::WriteGithubWebhookLogEntry($requestId, 'Error getting last local commit. Output: ' . $lastCommitSha1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue