diff --git a/src/pipeline.ts b/src/pipeline.ts index 02dda9e..2d6bf0a 100644 --- a/src/pipeline.ts +++ b/src/pipeline.ts @@ -37,10 +37,11 @@ async function createGiteaRepo(name: string) { async function gitInitAndPush(repoDir: string, repoUrl: string, token: string) { const config = loadConfig(); + + await run('git', ['init', '-b', 'main'], repoDir); if (config.git?.userName) await run('git', ['config', 'user.name', config.git.userName], repoDir); if (config.git?.userEmail) await run('git', ['config', 'user.email', config.git.userEmail], repoDir); - await run('git', ['init', '-b', 'main'], repoDir); await run('git', ['add', '.'], repoDir); await run('git', ['commit', '-m', 'Initial generated MCP server'], repoDir);