Skip to content

Commit 735b12e

Browse files
authored
fix sqlite lock (#5210)
1 parent 1ceae07 commit 735b12e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,7 @@ func ForkRepository(doer, u *User, oldRepo *Repository, name, desc string) (_ *R
24592459
repoPath := RepoPath(u.Name, repo.Name)
24602460
_, stderr, err := process.GetManager().ExecTimeout(10*time.Minute,
24612461
fmt.Sprintf("ForkRepository(git clone): %s/%s", u.Name, repo.Name),
2462-
"git", "clone", "--bare", oldRepo.RepoPath(), repoPath)
2462+
"git", "clone", "--bare", oldRepo.repoPath(sess), repoPath)
24632463
if err != nil {
24642464
return nil, fmt.Errorf("git clone: %v", stderr)
24652465
}

0 commit comments

Comments
 (0)