MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / commitInitial

Function commitInitial

src/workspaces/workspace-creator.ts:287–294  ·  view source on GitHub ↗
(dir: string, message: string)

Source from the content-addressed store, hash-verified

285 * already run `git init` and set excludes; we just stage and commit.
286 */
287export async function commitInitial(dir: string, message: string): Promise<void> {
288 await runGit(dir, ['add', '.']);
289 await runGit(dir, [
290 '-c', 'user.email=launcher@local',
291 '-c', 'user.name=launcher',
292 'commit', '-q', '-m', message,
293 ]);
294}
295
296// Routes through the bundled git (dugite) so the launcher's initial commit
297// needs no system git — same reason the bootstrap scripts use _common.mjs's

Callers 2

createMethod · 0.85

Calls 1

runGitFunction · 0.85

Tested by

no test coverage detected