Skip to content

Commit 33e4f2b

Browse files
fix compile errors in migrations
1 parent c18bcb4 commit 33e4f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/migrations/v1_12/v136.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func AddCommitDivergenceToPulls(x *xorm.Engine) error {
8484
log.Error("Missing base repo with id %d for PR ID %d", pr.BaseRepoID, pr.ID)
8585
continue
8686
}
87-
repoStore := repo_model.StorageRepo(repo_model.RelativePath(baseRepo.OwnerName, baseRepo.Name))
87+
repoStore := repo_model.StorageRepo(repo_model.RelativePath(baseRepo.OwnerName, baseRepo.Name, 0))
8888
gitRefName := fmt.Sprintf("refs/pull/%d/head", pr.Index)
8989
divergence, err := gitrepo.GetDivergingCommits(graceful.GetManager().HammerContext(), repoStore, pr.BaseBranch, gitRefName)
9090
if err != nil {

0 commit comments

Comments
 (0)