aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-13 10:05:50 -0500
committerUnknwon <u@gogs.io>2015-11-13 10:05:50 -0500
commita6c7716742943aa492545716b629a566c4d923de (patch)
tree61e44d5fd4fa4dddcb8001c89723e445c4c08136
parent1c3754bcec37fe448bc46dfd5abd944e86f951b7 (diff)
minor fix for #1935 and fix #1854
-rw-r--r--README.md2
-rw-r--r--gogs.go2
-rw-r--r--models/action.go8
-rw-r--r--templates/.VERSION2
4 files changed, 7 insertions, 7 deletions
diff --git a/README.md b/README.md
index 5f11a63c..df8fa611 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
![](public/img/gogs-large-resize.png)
-##### Current version: 0.7.6 Beta
+##### Current version: 0.7.7 Beta
<table>
<tr>
diff --git a/gogs.go b/gogs.go
index 0ae13028..67b1cc08 100644
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.7.6.1112 Beta"
+const APP_VER = "0.7.7.1113 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
diff --git a/models/action.go b/models/action.go
index 19fd9102..c514a4c4 100644
--- a/models/action.go
+++ b/models/action.go
@@ -14,8 +14,8 @@ import (
"time"
"unicode"
- "github.com/go-xorm/xorm"
"github.com/Unknwon/com"
+ "github.com/go-xorm/xorm"
api "github.com/gogits/go-gogs-client"
@@ -138,10 +138,10 @@ func (a Action) GetIssueInfos() []string {
}
func (a Action) GetIssueTitle() string {
- issueIndex := com.StrTo(a.GetIssueInfos()[0]).MustInt64()
- issue, err := GetIssueByIndex(a.RepoID, issueIndex)
+ index := com.StrTo(a.GetIssueInfos()[0]).MustInt64()
+ issue, err := GetIssueByIndex(a.RepoID, index)
if err != nil {
- log.Error(4, "GetIssueByID: %v", err)
+ log.Error(4, "GetIssueByIndex: %v", err)
return "500 when get title"
}
return issue.Name
diff --git a/templates/.VERSION b/templates/.VERSION
index 6e7925e4..e6ef9167 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.7.6.1112 Beta \ No newline at end of file
+0.7.7.1113 Beta \ No newline at end of file