MCPcopy Create free account
hub / github.com/6174/comflowyspace / updateRepo

Function updateRepo

apps/node/src/modules/utils/git-repo.ts:41–48  ·  view source on GitHub ↗
(repoPath: string)

Source from the content-addressed store, hash-verified

39const repoPath = '/path/to/your/repo';
40
41export async function updateRepo(repoPath: string) {
42 const outdated = await isRepoOutdated(repoPath);
43 if (outdated) {
44 await forceUpdateRepo(repoPath);
45 } else {
46 logger.info('Repository is up to date.');
47 }
48}

Callers

nothing calls this directly

Calls 2

isRepoOutdatedFunction · 0.85
forceUpdateRepoFunction · 0.85

Tested by

no test coverage detected