Skip to content

Commit

Permalink
Merge pull request #14392 from williamdes/issue-14391-git-worktree
Browse files Browse the repository at this point in the history
Add support for commondir file in .git dir
  • Loading branch information
ibennetch committed Jun 16, 2018
2 parents d6cfb36 + 13e34b4 commit d8199e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/classes/Config.php
Expand Up @@ -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, '/')) {
Expand Down

0 comments on commit d8199e2

Please sign in to comment.