diff options
Diffstat (limited to 'models/migrations/v136.go')
-rw-r--r-- | models/migrations/v136.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/migrations/v136.go b/models/migrations/v136.go index 101cf75955..94372e4142 100644 --- a/models/migrations/v136.go +++ b/models/migrations/v136.go @@ -12,6 +12,7 @@ import ( "time" "code.gitea.io/gitea/modules/git" + "code.gitea.io/gitea/modules/graceful" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" @@ -90,7 +91,7 @@ func addCommitDivergenceToPulls(x *xorm.Engine) error { gitRefName := fmt.Sprintf("refs/pull/%d/head", pr.Index) - divergence, err := git.GetDivergingCommits(repoPath, pr.BaseBranch, gitRefName) + divergence, err := git.GetDivergingCommits(graceful.GetManager().HammerContext(), repoPath, pr.BaseBranch, gitRefName) if err != nil { log.Warn("Could not recalculate Divergence for pull: %d", pr.ID) pr.CommitsAhead = 0 |