diff --git a/setup.php b/setup.php
index 13d4f03d..fcb75437 100644
--- a/setup.php
+++ b/setup.php
@@ -43,6 +43,14 @@
$database_type_name = "PostgreSQL";
}
+$git_ref = "Unknown";
+
+if (PHP_OS == "Linux") {
+ if (is_dir (".git")) {
+ $git_ref = shell_exec('cat .git/`cat .git/HEAD | sed "s/.* \(.*\)/\1/"`');
+ }
+}
+
$phpVersionWarning = "";
if (version_compare(phpversion(), '6', '<')) {
@@ -68,6 +76,8 @@
{$SERVER_NAME}
{$DVWAOS}
+
+ Git reference: {$git_ref}
PHP version: " . phpversion() . "
{$phpVersionWarning}