git small fix to work with submodules
This commit is contained in:
parent
8c8c396aed
commit
c4d0082a69
@ -82,7 +82,7 @@ class GitRepo {
|
||||
$repo_path = $new_path;
|
||||
if (is_dir($repo_path)) {
|
||||
// Is this a work tree?
|
||||
if (file_exists($repo_path."/.git") && is_dir($repo_path."/.git")) {
|
||||
if (file_exists($repo_path."/.git") || is_dir($repo_path."/.git")) {
|
||||
$this->repo_path = $repo_path;
|
||||
$this->bare = false;
|
||||
// Is this a bare repo?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user