mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-06 10:29:59 +00:00
refactor: remove Ctx field from git.Repository (#38500)
This commit is contained in:
@@ -34,13 +34,13 @@ func StartPRCheckAndAutoMerge(ctx context.Context, pull *issues_model.PullReques
|
||||
return
|
||||
}
|
||||
|
||||
gitRepo, err := gitrepo.OpenRepository(ctx, pull.BaseRepo)
|
||||
gitRepo, err := gitrepo.OpenRepository(pull.BaseRepo)
|
||||
if err != nil {
|
||||
log.Error("OpenRepository: %v", err)
|
||||
return
|
||||
}
|
||||
defer gitRepo.Close()
|
||||
commitID, err := gitRepo.GetRefCommitID(pull.GetGitHeadRefName())
|
||||
commitID, err := gitRepo.GetRefCommitID(ctx, pull.GetGitHeadRefName())
|
||||
if err != nil {
|
||||
log.Error("GetRefCommitID: %v", err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user