Enhance git fetch error: include error on page if possible

This commit is contained in:
Marcus Hill 2023-09-30 13:51:39 +01:00
parent ff161ab47b
commit 05f25b3ebf
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ $git_log = shell_exec("git log $repo_branch..origin/$repo_branch --pretty=format
<?php if ($result !== 0) { ?>
<div class="alert alert-danger" role="alert">
<strong>WARNING: Could not find execute 'git fetch'.</strong>
<br><br>
<i>Error details: <?php echo(shell_exec("git fetch 2>&1")); ?></i>
<br>
<br>Things to check: Is Git installed? Is the Git origin/remote correct? Are web server file permissions too strict?
<br>Seek support on the <a href="https://forum.itflow.org">Forum</a> if required - include relevant PHP error logs & ITFlow debug output
</div>