summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-10-30 09:21:18 +0800
committerGitHub <noreply@github.com>2018-10-30 09:21:18 +0800
commit735b12eaf03613ed6986b3828a2e5715ed24484b (patch)
tree7aba19002507a981bbee45e5cc0bc1a7b2503890 /models/repo.go
parent1ceae0756045c2379b98020ef32a8d37de7859ac (diff)
downloadgitea-735b12eaf03613ed6986b3828a2e5715ed24484b.tar.gz
gitea-735b12eaf03613ed6986b3828a2e5715ed24484b.zip
fix sqlite lock (#5210)
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index 6fd7aca8b3..1bdd1581f2 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -2459,7 +2459,7 @@ func ForkRepository(doer, u *User, oldRepo *Repository, name, desc string) (_ *R
repoPath := RepoPath(u.Name, repo.Name)
_, stderr, err := process.GetManager().ExecTimeout(10*time.Minute,
fmt.Sprintf("ForkRepository(git clone): %s/%s", u.Name, repo.Name),
- "git", "clone", "--bare", oldRepo.RepoPath(), repoPath)
+ "git", "clone", "--bare", oldRepo.repoPath(sess), repoPath)
if err != nil {
return nil, fmt.Errorf("git clone: %v", stderr)
}