Skip to content

Commit b0678a8

Browse files
committed
fix: greenfield initial commit works without git config
1 parent 746bec2 commit b0678a8

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

server/greenfieldService.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,10 @@ class GreenfieldService {
301301
// Step 4: Initialize git in master
302302
await execAsync('git init', { cwd: masterPath });
303303
await execAsync('git add .', { cwd: masterPath });
304-
await execAsync('git commit -m "Initial commit"', { cwd: masterPath });
304+
await execAsync(
305+
'git -c user.name="Claude Orchestrator" -c user.email="orchestrator@local" commit -m "Initial commit"',
306+
{ cwd: masterPath }
307+
);
305308
logger.info('Git initialized in master');
306309

307310
// Step 5: Create GitHub remote and push
@@ -633,7 +636,10 @@ Start by understanding the requirements, then design and implement the solution.
633636

634637
await execAsync('git init', { cwd: projectPath });
635638
await execAsync('git add .', { cwd: projectPath });
636-
await execAsync('git commit -m "Initial commit"', { cwd: projectPath });
639+
await execAsync(
640+
'git -c user.name="Claude Orchestrator" -c user.email="orchestrator@local" commit -m "Initial commit"',
641+
{ cwd: projectPath }
642+
);
637643

638644
logger.info('Git repository initialized');
639645
}

0 commit comments

Comments
 (0)