diff --git a/libraries/classes/Config.php b/libraries/classes/Config.php index 093b20b5496e..49e27a563313 100644 --- a/libraries/classes/Config.php +++ b/libraries/classes/Config.php @@ -436,6 +436,10 @@ public function checkGitRevision(): void return; } + if ($common_dir_contents = @file_get_contents($git_folder . '/commondir')) { + $git_folder = $git_folder.DIRECTORY_SEPARATOR.trim($common_dir_contents); + } + $branch = false; // are we on any branch? if (strstr($ref_head, '/')) {