* fix save commit bug.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user