{"record":{"id":"3dd41e2817ee2f18","repo":"Fission-AI/OpenSpec","slug":"store-remote-empty","errorCode":"store_remote_empty","errorMessage":"Store remote must not be empty when provided.","messagePattern":"Store remote must not be empty when provided\\.","errorType":"error_code","errorClass":"StoreError","httpStatus":null,"severity":"error","filePath":"src/core/store/operations.ts","lineNumber":464,"sourceCode":" */\nasync function resolveBackendWithObservedOrigin(\n  storeRoot: string\n): Promise<StoreGitBackendConfig> {\n  const origin = (await isGitRepositoryAtRoot(storeRoot))\n    ? await gitOriginUrl(storeRoot)\n    : null;\n  return resolveGitStoreBackendConfig({\n    localPath: storeRoot,\n    ...(origin ? { remote: origin } : {}),\n  });\n}\n\nasync function prepareSetupPlan(\n  input: Pick<SetupStoreInput, 'id' | 'path' | 'allowInsideGitRepository' | 'remote'>\n): Promise<StoreSetupPlan> {\n  const id = validateStoreId(input.id ?? '');\n  if (input.remote !== undefined && input.remote.length === 0) {\n    throw new StoreError('Store remote must not be empty when provided.', 'store_remote_empty', {\n      target: 'store.metadata',\n      fix: 'Pass a clone URL: --remote <url>.',\n    });\n  }\n  const storeRoot = resolveSetupRoot(id, input.path);\n  const kind = await pathKind(storeRoot);\n\n  if (kind === 'file' || kind === 'other') {\n    throw new StoreError(\n      `Store setup path is not a directory: ${storeRoot}`,\n      'store_setup_path_not_directory',\n      {\n        target: 'store.root',\n        fix: 'Choose an empty directory or an existing healthy OpenSpec root.',\n      }\n    );\n  }\n","sourceCodeStart":446,"sourceCodeEnd":482,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/store/operations.ts#L446-L482","documentation":"Error \"Store remote must not be empty when provided.\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/store/operations.ts:464 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":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-08-25T16:17:27.014Z"}