MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / initializeProjectGit

Function initializeProjectGit

desktop/project-git/commit-actions.ts:11–17  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

9import type { CommitMessageContext } from './types.ts'
10
11export async function initializeProjectGit(projectId: string) {
12 if (await isGitRepository(projectId)) {
13 return
14 }
15
16 await runGit(projectId, ['init'])
17}
18
19export async function setProjectOrigin(projectId: string, repoUrl: string) {
20 if (!(await isGitRepository(projectId))) {

Callers 2

createProjectFunction · 0.90

Calls 2

isGitRepositoryFunction · 0.90
runGitFunction · 0.90

Tested by

no test coverage detected