diff --git a/libraries/classes/Config.php b/libraries/classes/Config.php index 0d2bf1baae09..6f69cb6754a8 100644 --- a/libraries/classes/Config.php +++ b/libraries/classes/Config.php @@ -403,6 +403,10 @@ public function checkGitRevision() 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, '/')) {