Show git branch on debug page

This commit is contained in:
wrongecho 2025-01-09 15:32:11 +00:00
parent 0871833f48
commit d3d3d37595
1 changed files with 9 additions and 2 deletions

View File

@ -11,6 +11,9 @@ $checks = [];
// Execute the git command to get the latest commit hash
$commitHash = exec('git log -1 --format=%H');
// Get branch info
$gitBranch = exec('git rev-parse --abbrev-ref HEAD');
// Section: System Information
$systemInfo = [];
@ -522,13 +525,17 @@ $mysqli->close();
<th>ITFlow release version</th>
<th><?php echo APP_VERSION; ?></th>
</tr>
<tr>
<td>Current DB Version</td>
<td><?php echo CURRENT_DATABASE_VERSION; ?></td>
</tr>
<tr>
<td>Current Code Commit</td>
<td><?php echo $commitHash; ?></td>
</tr>
<tr>
<td>Current DB Version</td>
<td><?php echo CURRENT_DATABASE_VERSION; ?></td>
<td>Current Branch</td>
<td><?php echo $gitBranch; ?></td>
</tr>
</table>