mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +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
|
||||
$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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user