MCPcopy
hub / github.com/expo/expo / initAsync

Method initAsync

tools/src/Git.ts:126–131  ·  view source on GitHub ↗

* Initializes git repository in the directory.

()

Source from the content-addressed store, hash-verified

124 * Initializes git repository in the directory.
125 */
126 async initAsync() {
127 const dotGitPath = join(this.path, '.git');
128 if (!(await fs.pathExists(dotGitPath))) {
129 await this.runAsync(['init']);
130 }
131 }
132
133 /**
134 * Adds a new remote to the local repository.

Callers 2

shallowCloneAsyncMethod · 0.95

Calls 2

runAsyncMethod · 0.95
joinFunction · 0.90

Tested by

no test coverage detected