MCPcopy Create free account
hub / github.com/agent-tower/core / resolveProjectPath

Function resolveProjectPath

packages/server/src/services/project.service.ts:146–157  ·  view source on GitHub ↗
(repoPath: string)

Source from the content-addressed store, hash-verified

144async function initializeEmptyRepository(repoPath: string): Promise<void> {
145 await execGit(repoPath, ['init']);
146 await execGit(repoPath, ['symbolic-ref', 'HEAD', 'refs/heads/main']);
147}
148
149async function removeGitMetadata(repoPath: string): Promise<void> {
150 await fsPromises.rm(path.join(repoPath, '.git'), { recursive: true, force: true }).catch(() => {});
151}
152
153async function resolveProjectPath(repoPath: string): Promise<{
154 resolvedPath: string;
155 repoRemoteUrl: string | null;
156}> {
157 const resolvedPath = path.resolve(repoPath);
158 assertDirectoryPathExists(resolvedPath);
159
160 return {

Callers 1

restoreMethod · 0.85

Calls 2

getRepoRemoteUrlFunction · 0.85

Tested by

no test coverage detected