mirror of https://github.com/itflow-org/itflow
Show git branch on debug page
This commit is contained in:
parent
0871833f48
commit
d3d3d37595
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue