Move generate from module to service (#29465)

This commit is contained in:
Lunny Xiao 2024-02-28 21:40:36 +08:00 committed by GitHub
parent d0fe6ea4e1
commit b5188cd55c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 97 additions and 82 deletions

View file

@ -157,7 +157,7 @@ func initRepository(ctx context.Context, repoPath string, u *user_model.User, re
}
// Apply changes and commit.
if err = repo_module.InitRepoCommit(ctx, tmpDir, repo, u, opts.DefaultBranch); err != nil {
if err = initRepoCommit(ctx, tmpDir, repo, u, opts.DefaultBranch); err != nil {
return fmt.Errorf("initRepoCommit: %w", err)
}
}