diff options
author | Unknwon <u@gogs.io> | 2015-09-10 07:53:40 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-10 07:53:40 -0400 |
commit | c8d92fad305f78f0207203b3f1ea955e0ef0309d (patch) | |
tree | 829cde73ebc9c35803716125a1eb35124383f39e /models/action.go | |
parent | c3061c61a74dd6eab802fd37c085b06c761f94e7 (diff) | |
download | gitea-c8d92fad305f78f0207203b3f1ea955e0ef0309d.tar.gz gitea-c8d92fad305f78f0207203b3f1ea955e0ef0309d.zip |
#1595 pushing new branch will rereference issues in previous branch
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go index 07f5b17a79..2e158cbf16 100644 --- a/models/action.go +++ b/models/action.go @@ -220,7 +220,7 @@ func updateIssuesCommit(u *User, repo *Repository, repoUserName, repoName string url := fmt.Sprintf("%s/%s/%s/commit/%s", setting.AppSubUrl, repoUserName, repoName, c.Sha1) message := fmt.Sprintf(`<a href="%s">%s</a>`, url, c.Message) - if _, err = CreateComment(u, repo, issue, 0, 0, COMMENT_TYPE_COMMIT_REF, message, nil); err != nil { + if err = CreateRefComment(u, repo, issue, message, c.Sha1); err != nil { return err } } |