* fix save commit bug.

This commit is contained in:
wangyidong
2020-03-04 20:43:03 +08:00
parent 79485845d5
commit 8e2f609b41
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ class gitModel extends model
if(strpos($log->msg, $comment) !== false) $this->compile->createByIntegration($integration->id);
}
}
$version = $this->repo->saveOneCommit($repoID, $log, $version);
$version = $this->repo->saveOneCommit($repoID, $log, $version, $branch);
$commits += count($logs);
}
}
+1 -1
View File
@@ -1236,7 +1236,7 @@ class repoModel extends model
$action->actor = $log->author;
$action->date = $log->date;
$action->comment = htmlspecialchars($this->repo->iconvComment($log->msg, $encodings));
$action->comment = htmlspecialchars($this->iconvComment($log->msg, $encodings));
$action->extra = $scm == 'svn' ? $log->revision : substr($log->revision, 0, 10);
$this->loadModel('action');