diff --git a/gogs.go b/gogs.go
index 775038109..5f4694801 100644
--- a/gogs.go
+++ b/gogs.go
@@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.9.165.0221 / 0.10 RC"
+const APP_VER = "0.9.165.0222 / 0.10 RC"
func init() {
setting.AppVer = APP_VER
diff --git a/models/action.go b/models/action.go
index a88968d3c..0c6637a01 100644
--- a/models/action.go
+++ b/models/action.go
@@ -335,7 +335,12 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err
}
refMarked[issue.ID] = true
- message := fmt.Sprintf(`%s`, repo.Link(), c.Sha1, c.Message)
+ msgLines := strings.Split(c.Message, "\n")
+ shortMsg := msgLines[0]
+ if len(msgLines) > 2 {
+ shortMsg += "..."
+ }
+ message := fmt.Sprintf(`%s`, repo.Link(), c.Sha1, shortMsg)
if err = CreateRefComment(doer, repo, issue, message, c.Sha1); err != nil {
return err
}
diff --git a/templates/.VERSION b/templates/.VERSION
index f3c32f846..41dd8d9d4 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.9.165.0221 / 0.10 RC
\ No newline at end of file
+0.9.165.0222 / 0.10 RC
\ No newline at end of file
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 3296bc09f..1b54718bb 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -138,7 +138,6 @@
{{.Poster.Name}} {{$.i18n.Tr "repo.issues.commit_ref_at" .EventTag $createdStr | Safe}}
-