{"record":{"id":"08a706efa46f93aa","repo":"paperclipai/paperclip","slug":"git-ref-install-cancelled-before-downloading-or-ex","errorCode":null,"errorMessage":"Git-ref install cancelled before downloading or executing repository code.","messagePattern":"Git-ref install cancelled before downloading or executing repository code\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/install.ts","lineNumber":354,"sourceCode":"    return;\n  }\n  const changed = addManagedPathBlock(rcPath);\n  console.log(changed ? pc.green(`Updated ${rcPath}.`) : pc.dim(`${rcPath} already contains the PATH block.`));\n}\n\nasync function confirmGitInstall(options: InstallOptions, repo: string, ref: string): Promise<void> {\n  const warning = `Installing ${repo}@${ref} executes dependency and build scripts from that repository.`;\n  console.log(pc.yellow(`Warning: ${warning}`));\n  if (options.yes === true) return;\n  if (!process.stdin.isTTY || !process.stdout.isTTY) {\n    throw new Error(`${warning} Re-run with --yes to consent in non-interactive environments.`);\n  }\n  const confirmed = await p.confirm({\n    message: `${warning} Continue?`,\n    initialValue: false,\n  });\n  if (p.isCancel(confirmed) || !confirmed) {\n    throw new Error(\"Git-ref install cancelled before downloading or executing repository code.\");\n  }\n}\n\nexport async function installCommand(\n  options: InstallOptions,\n  dependencies: { runCommand?: CommandRunner; now?: () => Date } = {},\n): Promise<void> {\n  assertSupportedNodeVersion();\n  const runCommand = dependencies.runCommand ?? runCommandWithDiagnostics;\n  const gitRequest = resolveGitInstallRequest(options);\n  if (gitRequest) {\n    await confirmGitInstall(options, gitRequest.repo, gitRequest.ref);\n    const sha = await resolveGitHubRef(gitRequest.repo, gitRequest.ref, runCommand);\n    const paths = resolveInstallStorePaths();\n    const installed = await withInstallStoreLock(async () => {\n      assertManagedShimWritable(paths);\n      const currentManifest = readInstallManifest(paths);\n      const payload = await installGitPayload(gitRequest.repo, sha, runCommand, paths);","sourceCodeStart":336,"sourceCodeEnd":372,"githubUrl":"https://github.com/paperclipai/paperclip/blob/67001ec6eb96ae601aa27bc91d9b2415d665334a/cli/src/commands/install.ts#L336-L372","documentation":"Error \"Git-ref install cancelled before downloading or executing repository code.\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at cli/src/commands/install.ts:354 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"67001ec6eb96ae601aa27bc91d9b2415d665334a","analyzedAt":"2026-08-12T12:05:45.408Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}