Merge pull request #527 from DamnDam/patch-1

Problem with tree path containing spaces
This commit is contained in:
Klaus Silveira
2014-11-14 10:59:03 -02:00

View File

@@ -172,7 +172,7 @@ class Repository
if ($path != "") $path = "$path/"; if ($path != "") $path = "$path/";
$files = $repository->getTree($path != "" ? "$branch:$path" : $branch)->output(); $files = $repository->getTree($path != "" ? "$branch:\"$path\"" : $branch)->output();
foreach ($files as $file) { foreach ($files as $file) {
if (preg_match('/^readme*/i', $file['name'])) { if (preg_match('/^readme*/i', $file['name'])) {