mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
Merge pull request #527 from DamnDam/patch-1
Problem with tree path containing spaces
This commit is contained in:
@@ -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'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user