summaryrefslogtreecommitdiffstats
path: root/models/migrations
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-04-15 00:16:07 +0200
committerGitHub <noreply@github.com>2020-04-14 17:16:07 -0500
commitd66b9a46908b83a4d94652a40fd1cd46af11f215 (patch)
tree00f9ae5ee357b5206a91c38e328f62da71c790a4 /models/migrations
parent0ad03572332e37eb2c9afb93a0f4b5425bd70a97 (diff)
downloadgitea-d66b9a46908b83a4d94652a40fd1cd46af11f215.tar.gz
gitea-d66b9a46908b83a4d94652a40fd1cd46af11f215.zip
Fix Migration 136 (be less aggressive to open pulls missing git files) (#11072)
* be less aggressife to open pulls when migrating * remove unused
Diffstat (limited to 'models/migrations')
-rw-r--r--models/migrations/v136.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/models/migrations/v136.go b/models/migrations/v136.go
index 115861f344..da5706258e 100644
--- a/models/migrations/v136.go
+++ b/models/migrations/v136.go
@@ -42,12 +42,6 @@ func addCommitDivergenceToPulls(x *xorm.Engine) error {
for _, pr := range results {
divergence, err := pull_service.GetDiverging(pr)
if err != nil {
- if err = pr.LoadIssue(); err != nil {
- return fmt.Errorf("pr.LoadIssue()[%d]: %v", pr.ID, err)
- }
- if !pr.Issue.IsClosed {
- return fmt.Errorf("GetDiverging: %v", err)
- }
log.Warn("Could not recalculate Divergence for pull: %d", pr.ID)
pr.CommitsAhead = 0
pr.CommitsBehind = 0