]> source.dussan.org Git - gitea.git/commitdiff
fix sqlite lock (#5210)
authorLunny Xiao <xiaolunwen@gmail.com>
Tue, 30 Oct 2018 01:21:18 +0000 (09:21 +0800)
committerGitHub <noreply@github.com>
Tue, 30 Oct 2018 01:21:18 +0000 (09:21 +0800)
models/repo.go

index 6fd7aca8b38922462c81244a9bc145d5197f10e6..1bdd1581f2eec7e79908205b23318f3e560a24fc 100644 (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)
        }