summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-03-17 10:15:00 +0800
committerGitHub <noreply@github.com>2017-03-17 10:15:00 +0800
commit3cf0e513e68509558e135cfaea5cdc8fecc7f7c5 (patch)
tree093626304d2e5ed884c90c694825ddd58e978dc5
parent925b2529273b95c5b1c9165525e0daede4fa82ee (diff)
downloadgitea-3cf0e513e68509558e135cfaea5cdc8fecc7f7c5.tar.gz
gitea-3cf0e513e68509558e135cfaea5cdc8fecc7f7c5.zip
fix wrong log when push to a new branch (#1220)
-rw-r--r--models/action.go2
-rw-r--r--modules/github/issues.go0
2 files changed, 1 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go
index c736fabf38..9897a879b7 100644
--- a/models/action.go
+++ b/models/action.go
@@ -360,7 +360,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err
issue, err := GetIssueByRef(ref)
if err != nil {
- if IsErrIssueNotExist(err) {
+ if IsErrIssueNotExist(err) || err == errMissingIssueNumber {
continue
}
return err
diff --git a/modules/github/issues.go b/modules/github/issues.go
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/modules/github/issues.go