MCPcopy
hub / github.com/claude-code-best/claude-code / ensureStarted

Method ensureStarted

src/utils/git/gitFilesystem.ts:342–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340 private cache = new Map<string, CacheEntry<unknown>>()
341
342 async ensureStarted(): Promise<void> {
343 if (this.initialized) {
344 return
345 }
346 if (this.initPromise) {
347 return this.initPromise
348 }
349 this.initPromise = this.start()
350 return this.initPromise
351 }
352
353 private async start(): Promise<void> {
354 this.gitDir = await resolveGitDir()

Callers 1

getMethod · 0.95

Calls 1

startMethod · 0.95

Tested by

no test coverage detected