* Remove unused code.
This commit is contained in:
@@ -748,14 +748,12 @@ class Gitea
|
||||
$list = execCmd($cmd . ' 2>&1', 'array', $result);
|
||||
if($result) return array();
|
||||
|
||||
$infos = array();
|
||||
foreach($list as $entry)
|
||||
{
|
||||
list($mod, $kind, $revision, $size, $name) = preg_split('/[\t ]+/', $entry);
|
||||
|
||||
/* Get commit info. */
|
||||
$pathName = ltrim($path . DIRECTORY_SEPARATOR . $name, DIRECTORY_SEPARATOR);
|
||||
$info->kind = $kind == 'tree' ? 'dir' : 'file';
|
||||
if($kind == 'tree')
|
||||
{
|
||||
$this->getAllFiles($pathName, $revision, $lists);
|
||||
|
||||
@@ -745,14 +745,12 @@ class GitRepo
|
||||
$list = execCmd($cmd . ' 2>&1', 'array', $result);
|
||||
if($result) return array();
|
||||
|
||||
$infos = array();
|
||||
foreach($list as $entry)
|
||||
{
|
||||
list($mod, $kind, $revision, $size, $name) = preg_split('/[\t ]+/', $entry);
|
||||
|
||||
/* Get commit info. */
|
||||
$pathName = ltrim($path . DIRECTORY_SEPARATOR . $name, DIRECTORY_SEPARATOR);
|
||||
$info->kind = $kind == 'tree' ? 'dir' : 'file';
|
||||
if($kind == 'tree')
|
||||
{
|
||||
$this->getAllFiles($pathName, $revision, $lists);
|
||||
|
||||
@@ -783,14 +783,12 @@ class Gogs
|
||||
$list = execCmd($cmd . ' 2>&1', 'array', $result);
|
||||
if($result) return array();
|
||||
|
||||
$infos = array();
|
||||
foreach($list as $entry)
|
||||
{
|
||||
list($mod, $kind, $revision, $size, $name) = preg_split('/[\t ]+/', $entry);
|
||||
|
||||
/* Get commit info. */
|
||||
$pathName = ltrim($path . DIRECTORY_SEPARATOR . $name, DIRECTORY_SEPARATOR);
|
||||
$info->kind = $kind == 'tree' ? 'dir' : 'file';
|
||||
if($kind == 'tree')
|
||||
{
|
||||
$this->getAllFiles($pathName, $revision, $lists);
|
||||
|
||||
Reference in New Issue
Block a user