forked from forgejo/forgejo
Move repoWorkPool outside rename/transfer repository (#9086)
* Move repoWorkPool outside rename/transfer repository * fix import * Fix test
This commit is contained in:
parent
9ff5b75559
commit
77730db257
5 changed files with 40 additions and 54 deletions
|
@ -609,8 +609,8 @@ func (pr *PullRequest) testPatch(e Engine) (err error) {
|
|||
return nil
|
||||
}
|
||||
|
||||
repoWorkingPool.CheckIn(com.ToStr(pr.BaseRepoID))
|
||||
defer repoWorkingPool.CheckOut(com.ToStr(pr.BaseRepoID))
|
||||
RepoWorkingPool.CheckIn(com.ToStr(pr.BaseRepoID))
|
||||
defer RepoWorkingPool.CheckOut(com.ToStr(pr.BaseRepoID))
|
||||
|
||||
log.Trace("PullRequest[%d].testPatch (patchPath): %s", pr.ID, patchPath)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue