From d3d3d3759514eb9efa5c1b1819acfb637ed79079 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Thu, 9 Jan 2025 15:32:11 +0000 Subject: [PATCH] Show git branch on debug page --- admin_debug.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/admin_debug.php b/admin_debug.php index c125504f..10c18ce8 100644 --- a/admin_debug.php +++ b/admin_debug.php @@ -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(); ITFlow release version + + Current DB Version + + Current Code Commit - Current DB Version - + Current Branch +