1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

commit format improved

This commit is contained in:
Lunny Xiao
2014-03-16 23:02:59 +08:00
parent f824d6a4b1
commit 1fb457ac1f
2 changed files with 12 additions and 4 deletions

View File

@@ -47,6 +47,7 @@ func runUpdate(*cli.Context) {
if err != nil {
return
}
sUserId, err := strconv.Atoi(userId)
if err != nil {
log.Error("runUpdate.Parse userId: %v", err)
@@ -57,8 +58,10 @@ func runUpdate(*cli.Context) {
log.Error("runUpdate.Parse repoId: %v", err)
return
}
commits := make([][]string, 0)
commits = append(commits, []string{lastCommit.Id().String(), lastCommit.Message()})
if err = models.CommitRepoAction(int64(sUserId), userName,
int64(sRepoId), repoName, lastCommit.Message()); err != nil {
int64(sRepoId), repoName, commits); err != nil {
log.Error("runUpdate.models.CommitRepoAction: %v", err)
}
}