Browse Source

fix sqlite lock (#5210)

tags/v1.7.0-dev
Lunny Xiao 5 years ago
parent
commit
735b12eaf0
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      models/repo.go

+ 1
- 1
models/repo.go View File

@@ -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)
}

Loading…
Cancel
Save