diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2018-10-30 09:21:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-30 09:21:18 +0800 |
commit | 735b12eaf03613ed6986b3828a2e5715ed24484b (patch) | |
tree | 7aba19002507a981bbee45e5cc0bc1a7b2503890 /models/repo.go | |
parent | 1ceae0756045c2379b98020ef32a8d37de7859ac (diff) | |
download | gitea-735b12eaf03613ed6986b3828a2e5715ed24484b.tar.gz gitea-735b12eaf03613ed6986b3828a2e5715ed24484b.zip |
fix sqlite lock (#5210)
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
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) } |