Skip to content

Commit 478ba7f

Browse files
authored
fix sqlite lock (#5210) (#5223)
1 parent 582213a commit 478ba7f

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
@@ -2451,7 +2451,7 @@ func ForkRepository(doer, u *User, oldRepo *Repository, name, desc string) (_ *R
24512451
repoPath := RepoPath(u.Name, repo.Name)
24522452
_, stderr, err := process.GetManager().ExecTimeout(10*time.Minute,
24532453
fmt.Sprintf("ForkRepository(git clone): %s/%s", u.Name, repo.Name),
2454-
"git", "clone", "--bare", oldRepo.RepoPath(), repoPath)
2454+
"git", "clone", "--bare", oldRepo.repoPath(sess), repoPath)
24552455
if err != nil {
24562456
return nil, fmt.Errorf("git clone: %v", stderr)
24572457
}

0 commit comments

Comments
 (0)