mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Enhance git fetch error: include error on page if possible
This commit is contained in:
@@ -24,7 +24,7 @@ $git_log = shell_exec("git log $repo_branch..origin/$repo_branch --pretty=format
|
||||
</div>
|
||||
<div class="card-body" style="text-align: center;">
|
||||
|
||||
<!-- Check if git fetch result is zero (success) -->
|
||||
<!-- Check if git fetch result was successful (0), if not show a warning -->
|
||||
<?php if ($result !== 0) { ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<strong>WARNING: Could not find execute 'git fetch'.</strong>
|
||||
|
||||
Reference in New Issue
Block a user