aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorMario Lubenka <mario.lubenka@googlemail.com>2019-06-12 01:32:08 +0200
committertechknowlogick <hello@techknowlogick.com>2019-06-11 19:32:08 -0400
commit1608f63e396c78bcbea3605b812556ddf441a6c4 (patch)
treeea9fd908eefc3acafce94d79625243b4999258dc /models
parent499a8a1cdd815cc25554371598140f5fb01e216f (diff)
downloadgitea-1608f63e396c78bcbea3605b812556ddf441a6c4.tar.gz
gitea-1608f63e396c78bcbea3605b812556ddf441a6c4.zip
Fixes diff on merged pull requests (#7171)
Diffstat (limited to 'models')
-rw-r--r--models/pull.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/pull.go b/models/pull.go
index 5ac1126314..1f03dd9b0f 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -1144,7 +1144,7 @@ func (pr *PullRequest) UpdatePatch() (err error) {
defer func() {
headGitRepo.RemoveRemote(tmpRemote)
}()
- pr.MergeBase, err = headGitRepo.GetMergeBase(tmpRemote, pr.BaseBranch, pr.HeadBranch)
+ pr.MergeBase, _, err = headGitRepo.GetMergeBase(tmpRemote, pr.BaseBranch, pr.HeadBranch)
if err != nil {
return fmt.Errorf("GetMergeBase: %v", err)
} else if err = pr.Update(); err != nil {