Adding support for folders with spaces on their names, fixes #27

This commit is contained in:
Klaus Silveira
2012-06-01 03:00:55 -03:00
parent 343fc2f8cc
commit 68286f618c

View File

@@ -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) {