- chdir($this->reposDir);
- $dirs = glob('*', GLOB_ONLYDIR);
+ chdir($this->gitDir);
+ $dirs = glob('*.git', GLOB_ONLYDIR);
+ array_walk($dirs, function ($dir) { return substr($dir, 0, -4); });
sort($dirs, SORT_NUMERIC);
$some = array_slice($dirs, $page * $perPage, $perPage);
$repos = array();
foreach ($some as $oneDir) {
$r = new Repository();
sort($dirs, SORT_NUMERIC);
$some = array_slice($dirs, $page * $perPage, $perPage);
$repos = array();
foreach ($some as $oneDir) {
$r = new Repository();