aboutsummaryrefslogtreecommitdiffstats
path: root/models/pull.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-06 12:00:50 +0800
committerGitHub <noreply@github.com>2019-12-06 12:00:50 +0800
commit77730db25768036a12e16cef9839b9492218303f (patch)
treebc1df7483f0be61609fa668093f2d04011faa100 /models/pull.go
parent9ff5b7555913964ebc6c463b00055394c85b8689 (diff)
downloadgitea-77730db25768036a12e16cef9839b9492218303f.tar.gz
gitea-77730db25768036a12e16cef9839b9492218303f.zip
Move repoWorkPool outside rename/transfer repository (#9086)
* Move repoWorkPool outside rename/transfer repository * fix import * Fix test
Diffstat (limited to 'models/pull.go')
-rw-r--r--models/pull.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/pull.go b/models/pull.go
index 27824c546a..388ee16b46 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -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)