From 4fd55d87965823b5acc79be43ac7832dc2fab563 Mon Sep 17 00:00:00 2001 From: agrn Date: Sat, 20 May 2017 06:43:43 +0200 Subject: [PATCH] Backport bugfixes #1220 and #1393 to v1.1 (#1758) * Fix "Error: No issue number specified" when pushing * fix wrong log when push to a new branch (#1220) * Removing empty file modules/github/issues.go --- models/action.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/action.go b/models/action.go index c736fabf3..6f76cbc4e 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 @@ -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