mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
keep old behavour if no contextual readme
This commit is contained in:
@@ -167,7 +167,7 @@ class Repository
|
|||||||
$branch = $repository->getHead();
|
$branch = $repository->getHead();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($path != "") $path = "$path/";
|
if ($path != "") $path = "$path/";
|
||||||
|
|
||||||
$files = $repository->getTree($path != "" ? "$branch:$path" : $branch)->output();
|
$files = $repository->getTree($path != "" ? "$branch:$path" : $branch)->output();
|
||||||
|
|
||||||
@@ -179,7 +179,8 @@ class Repository
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// No contextual readme, try to catch the main one if we are in deeper context
|
||||||
|
if ($path != "") return $this->getReadme($repository, $branch, "");
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user