summaryrefslogtreecommitdiffstats
path: root/models/pull.go
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-06-19 12:37:11 +0300
committerLunny Xiao <xiaolunwen@gmail.com>2017-06-19 17:37:11 +0800
commit165cf337714769ab79c5fe845f291e56c8243475 (patch)
tree268c614135d5b4dbbc2ad79b64d141582eec2c2a /models/pull.go
parent4d2ea7dc41f2a09f0b9b5833b18bc07a81490e4b (diff)
downloadgitea-165cf337714769ab79c5fe845f291e56c8243475.tar.gz
gitea-165cf337714769ab79c5fe845f291e56c8243475.zip
Wrong PR merge commit ID saved (#2007)
Diffstat (limited to 'models/pull.go')
-rw-r--r--models/pull.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/pull.go b/models/pull.go
index 7a636c3c8c..b5b63bebf1 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -328,7 +328,7 @@ func (pr *PullRequest) Merge(doer *User, baseGitRepo *git.Repository) (err error
return fmt.Errorf("git push: %s", stderr)
}
- pr.MergedCommitID, err = headGitRepo.GetBranchCommitID(pr.BaseBranch)
+ pr.MergedCommitID, err = baseGitRepo.GetBranchCommitID(pr.BaseBranch)
if err != nil {
return fmt.Errorf("GetBranchCommit: %v", err)
}