mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
Adding support for folders with spaces on their names, fixes #27
This commit is contained in:
@@ -41,7 +41,7 @@ $app->get('{repo}/tree/{branch}/', function($repo, $branch) use($app) {
|
||||
|
||||
$app->get('{repo}/tree/{branch}/{tree}/', function($repo, $branch, $tree) use($app) {
|
||||
$repository = $app['git']->getRepository($app['git.repos'] . $repo);
|
||||
$files = $repository->getTree("$branch:$tree/");
|
||||
$files = $repository->getTree("$branch:'$tree'/");
|
||||
$breadcrumbs = $app['utils']->getBreadcrumbs("$repo/tree/$branch/$tree");
|
||||
|
||||
if (($slash = strrpos($tree, '/')) !== false) {
|
||||
|
||||
Reference in New Issue
Block a user