MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / initIfNotExists

Function initIfNotExists

src/services/git/index.ts:98–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98export async function initIfNotExists(): Promise<never | void> {
99 const hasGitInit = exists('.git')
100 if (!hasGitInit) {
101 await init()
102 }
103}
104
105export async function checkRemoteConnects(repo: TT.TutorialRepo): Promise<never | void> {
106 // check for git repo

Callers

nothing calls this directly

Calls 2

existsFunction · 0.90
initFunction · 0.85

Tested by

no test coverage detected