tmp: fix issue open count

This commit is contained in:
Unknwon 2015-09-02 11:13:37 -04:00
parent d951824ff9
commit 5da306c0e5
2 changed files with 5 additions and 5 deletions

View file

@ -381,7 +381,8 @@ func MergePullRequest(ctx *middleware.Context) {
}
pr.Pull = pull
if err = pr.Merge(ctx.Repo.GitRepo); err != nil {
pr.Pull.Repo = ctx.Repo.Repository
if err = pr.Merge(ctx.User, ctx.Repo.GitRepo); err != nil {
ctx.Handle(500, "GetPullRequestByPullID", err)
return
}