diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2018-10-30 14:21:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-30 14:21:55 +0800 |
commit | 478ba7f318049d1c8ca3522bd31befe46ab2a63a (patch) | |
tree | 363ccb57b4299afe4d53b1b1b98c9fc47c219607 | |
parent | 582213a858d936b4a55ad2416fd0615e78edc247 (diff) | |
download | gitea-478ba7f318049d1c8ca3522bd31befe46ab2a63a.tar.gz gitea-478ba7f318049d1c8ca3522bd31befe46ab2a63a.zip |
fix sqlite lock (#5210) (#5223)
-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 b14b0c7705..3a8f8d6b6b 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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) } |