{"record":{"id":"0ea86d16414def36","repo":"paperclipai/paperclip","slug":"failed-to-fetch-from-remote-remote-extract","errorCode":null,"errorMessage":"Failed to fetch from remote \"${remote}\": ${extractExecSyncErrorMessage(error) ?? String(error)}","messagePattern":"Failed to fetch from remote \"(.+?)\": (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/worktree.ts","lineNumber":2650,"sourceCode":"  const name = resolveWorktreeMakeName(nameArg);\n  const startPoint = resolveWorktreeStartPoint(opts.startPoint);\n  const sourceCwd = process.cwd();\n  const sourceConfigPath = resolveSourceConfigPath(opts);\n  const targetPath = resolveWorktreeMakeTargetPath(name);\n  if (existsSync(targetPath)) {\n    throw new Error(`Target path already exists: ${targetPath}`);\n  }\n\n  mkdirSync(path.dirname(targetPath), { recursive: true });\n  if (startPoint) {\n    const [remote] = startPoint.split(\"/\", 1);\n    try {\n      execFileSync(\"git\", [\"fetch\", remote], {\n        cwd: sourceCwd,\n        stdio: [\"ignore\", \"pipe\", \"pipe\"],\n      });\n    } catch (error) {\n      throw new Error(\n        `Failed to fetch from remote \"${remote}\": ${extractExecSyncErrorMessage(error) ?? String(error)}`,\n      );\n    }\n  }\n\n  const worktreeArgs = resolveGitWorktreeAddArgs({\n    branchName: name,\n    targetPath,\n    branchExists: !startPoint && localBranchExists(sourceCwd, name),\n    startPoint,\n  });\n\n  const spinner = p.spinner();\n  spinner.start(`Creating git worktree at ${targetPath}...`);\n  try {\n    execFileSync(\"git\", worktreeArgs, {\n      cwd: sourceCwd,\n      stdio: [\"ignore\", \"pipe\", \"pipe\"],","sourceCodeStart":2632,"sourceCodeEnd":2668,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/cli/src/commands/worktree.ts#L2632-L2668","documentation":"Remote-synchronization failure in worktree:make: `git fetch <remote>` for the requested start point exited non-zero (network error, auth failure, or missing remote); git's own error detail is embedded in the message.","triggerScenarios":"Thrown at cli/src/commands/worktree.ts:1835 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check remote \"${remote}\" configuration with `git remote -v` and network access, then retry.","Run `git fetch ${remote}` manually to see the full error."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}