diff options
author | agrn <alban.gruin@gmail.com> | 2017-04-01 03:05:39 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-31 18:05:39 -0700 |
commit | 88112a53249077adf26e5200f723faa1570641e6 (patch) | |
tree | 252c02cca8c128722a4442843d81da811363520d | |
parent | 095e1f51556d940a07d9f8580d0d25acf6a39c63 (diff) | |
download | gitea-88112a53249077adf26e5200f723faa1570641e6.tar.gz gitea-88112a53249077adf26e5200f723faa1570641e6.zip |
Fix "Error: No issue number specified" when pushing (#1393)
* Fix "Error: No issue number specified" when pushing
* update pr
-rw-r--r-- | models/action.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go index 9897a879b7..6f76cbc4e3 100644 --- a/models/action.go +++ b/models/action.go @@ -398,7 +398,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 @@ -438,7 +438,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 |