MCPcopy
hub / github.com/coder/mux / syncLocalGitSubmodules

Function syncLocalGitSubmodules

src/node/runtime/submoduleSync.ts:154–163  ·  view source on GitHub ↗
(args: BaseSubmoduleSyncArgs)

Source from the content-addressed store, hash-verified

152}
153
154export async function syncLocalGitSubmodules(args: BaseSubmoduleSyncArgs): Promise<void> {
155 if (!(await hasLocalGitmodules(args.workspacePath))) {
156 return;
157 }
158
159 await runSubmoduleMaterialization({
160 ...args,
161 runtime: new LocalRuntime(args.workspacePath),
162 });
163}
164
165export async function syncRuntimeGitSubmodules(args: RuntimeSubmoduleSyncArgs): Promise<void> {
166 if (!(await hasRuntimeGitmodules(args))) {

Callers 2

createWorkspaceMethod · 0.90

Calls 2

hasLocalGitmodulesFunction · 0.85

Tested by

no test coverage detected