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

index b14b0c77059dac64e4504d4c0a2637a4c24ff016..3a8f8d6b6b1535940be63d847e8eb369e9f10dd5 100644 (file)
@@ -2451,7 +2451,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)
        }