{"record":{"id":"ce496e21823f626d","repo":"zed-industries/zed","slug":"git-clone-isn-t-supported-for-project-guests","errorCode":null,"errorMessage":"Git Clone isn't supported for project guests","messagePattern":"Git Clone isn't supported for project guests","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/git_store.rs","lineNumber":3161,"sourceCode":"    }\n\n    fn write_index_text_for_buffer_id(\n        &mut self,\n        buffer_id: BufferId,\n        new_index_text: Option<String>,\n        cx: &mut Context<Self>,\n    ) {\n        let Some(diff_state) = self.diffs.get(&buffer_id) else {\n            return;\n        };\n        let hunk_staging_operation_count = diff_state.update(cx, |diff_state, _| {\n            diff_state.hunk_staging_operation_count += 1;\n            diff_state.hunk_staging_operation_count\n        });\n        let Some((repo, path)) = self.repository_and_path_for_buffer_id(buffer_id, cx) else {\n            return;\n        };\n        let (encoding, has_bom) = self\n            .buffer_store\n            .read(cx)\n            .get(buffer_id)\n            .map(|buffer| {\n                let buffer = buffer.read(cx);\n                (buffer.encoding(), buffer.has_bom())\n            })\n            .unwrap_or((encoding_rs::UTF_8, false));\n        let recv = repo.update(cx, |repo, cx| {\n            log::debug!(\"hunks changed for {}\", path.as_unix_str());\n            repo.spawn_set_index_text_job(\n                path,\n                new_index_text,\n                encoding,\n                has_bom,\n                Some(hunk_staging_operation_count),\n                cx,\n            )","sourceCodeStart":3143,"sourceCodeEnd":3179,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/project/src/git_store.rs#L3143-L3179","documentation":"In GitStore::git_clone: the store is in the Remote state with an upstream collab client, i.e. the caller is a project guest. Cloning repositories is only supported on the host/local side, so the request is rejected for guests.","triggerScenarios":"Thrown at crates/project/src/git_store.rs:3153 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ask the project host to perform the clone","Clone the repository locally in your own Zed window instead"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}