* adjust demo sql and fix ls gitlib.

This commit is contained in:
wangyidong
2021-05-06 11:34:33 +08:00
parent 55560f0f05
commit 19a098481e
3 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ class gitlab
$api = "tree";
$param = new stdclass();
$param->path = urlencode(ltrim($path, '/'));
$param->path = ltrim($path, '/');
$param->ref = $revision;
$param->recursive = 0;
@@ -69,7 +69,7 @@ class gitlab
if(empty($commits)) continue;
$commit = $commits[0];
$info->name = $file->path;
$info->name = $file->name;
$info->kind = 'dir';
$info->revision = $commit->id;
$info->account = $commit->committer_name;