mirror of
https://github.com/itflow-org/itflow
synced 2026-03-16 02:34:50 +00:00
Show git branch on debug page
This commit is contained in:
@@ -11,6 +11,9 @@ $checks = [];
|
|||||||
// Execute the git command to get the latest commit hash
|
// Execute the git command to get the latest commit hash
|
||||||
$commitHash = exec('git log -1 --format=%H');
|
$commitHash = exec('git log -1 --format=%H');
|
||||||
|
|
||||||
|
// Get branch info
|
||||||
|
$gitBranch = exec('git rev-parse --abbrev-ref HEAD');
|
||||||
|
|
||||||
// Section: System Information
|
// Section: System Information
|
||||||
$systemInfo = [];
|
$systemInfo = [];
|
||||||
|
|
||||||
@@ -522,13 +525,17 @@ $mysqli->close();
|
|||||||
<th>ITFlow release version</th>
|
<th>ITFlow release version</th>
|
||||||
<th><?php echo APP_VERSION; ?></th>
|
<th><?php echo APP_VERSION; ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Current DB Version</td>
|
||||||
|
<td><?php echo CURRENT_DATABASE_VERSION; ?></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Current Code Commit</td>
|
<td>Current Code Commit</td>
|
||||||
<td><?php echo $commitHash; ?></td>
|
<td><?php echo $commitHash; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Current DB Version</td>
|
<td>Current Branch</td>
|
||||||
<td><?php echo CURRENT_DATABASE_VERSION; ?></td>
|
<td><?php echo $gitBranch; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user