{"record":{"id":"f465c1640a6a83cc","repo":"zed-industries/zed","slug":"git-clone-failed-f465c1","errorCode":null,"errorMessage":"Git Clone failed","messagePattern":"Git Clone failed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/git_store.rs","lineNumber":3176,"sourceCode":"        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            )\n        });\n        cx.spawn(async move |this, cx| {\n            if let Ok(Err(error)) = cx.background_spawn(recv).await {\n                this.update(cx, |this, cx| {\n                    if let Some(diff_state) = this.diffs.get(&buffer_id).cloned() {\n                        diff_state.update(cx, |diff_state, cx| {\n                            diff_state.clear_pending_index_edits_and_hunks(cx);\n                        });\n                    }\n                    cx.emit(GitStoreEvent::IndexWriteError(error));\n                })\n                .ok();\n            }\n        })\n        .detach();","sourceCodeStart":3158,"sourceCodeEnd":3194,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/project/src/git_store.rs#L3158-L3194","documentation":"The remote git clone RPC (proto::GitClone) sent to the host failed — the request itself returned an error rather than completing. The host-side clone likely failed (bad URL, auth, disk) or the connection dropped mid-request.","triggerScenarios":"Thrown at crates/project/src/git_store.rs:3168 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the host's logs for the underlying clone failure","Verify the repository URL and credentials, and available disk space on the host","Retry after fixing the cause; transient connection drops can simply be retried"],"exampleFix":null,"handlingStrategy":"retry","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"}