* Adjust scm log parse.

This commit is contained in:
caoyanyi
2024-05-24 13:59:47 +08:00
parent 99cd693301
commit e7d57e0406
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -719,7 +719,7 @@ class giteaRepo
list($action, $entry) = $lineList;
$entry = '/' . trim($entry);
$pathInfo = array();
$pathInfo['action'] = $action;
$pathInfo['action'] = substr($action, 0, 1);
$pathInfo['kind'] = 'file';
$pathInfo['oldPath'] = isset($lineList[2]) ? '/' . trim($lineList[2]) : '';
$changes[$entry] = $pathInfo;
+1 -1
View File
@@ -737,7 +737,7 @@ class gogsRepo
list($action, $entry) = $lineList;
$entry = '/' . trim($entry);
$pathInfo = array();
$pathInfo['action'] = $action;
$pathInfo['action'] = substr($action, 0, 1);
$pathInfo['kind'] = 'file';
$pathInfo['oldPath'] = isset($lineList[2]) ? '/' . trim($lineList[2]) : '';
$changes[$entry] = $pathInfo;