MCPcopy Create free account
hub / github.com/cursor/plugins / resolveKickoffRepoUrl

Function resolveKickoffRepoUrl

orchestrate/skills/orchestrate/scripts/cli/util.ts:378–393  ·  view source on GitHub ↗
(repo: string | undefined)

Source from the content-addressed store, hash-verified

376}
377
378export function resolveKickoffRepoUrl(repo: string | undefined): string {
379 if (repo) return repo;
380 const originUrl = execFileSync(
381 "git",
382 ["config", "--get", "remote.origin.url"],
383 {
384 stdio: ["ignore", "pipe", "pipe"],
385 }
386 )
387 .toString()
388 .trim();
389 if (!originUrl) {
390 throw new Error("git remote.origin.url not set");
391 }
392 return normalizeKickoffRepoUrl(originUrl);
393}
394
395export function normalizeKickoffRepoUrl(url: string): string {
396 const trimmed = url.trim();

Callers 1

registerTaskCommandsFunction · 0.90

Calls 1

normalizeKickoffRepoUrlFunction · 0.85

Tested by

no test coverage detected