zed-industries/zed · error
Git Clone failed
Error message
Git Clone failed
What it means
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.
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
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at crates/project/src/git_store.rs:3168 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/f465c1640a6a83cc.
Report an issue: GitHub.
Appendix: source
Thrown at crates/project/src/git_store.rs:3176
let Some((repo, path)) = self.repository_and_path_for_buffer_id(buffer_id, cx) else {
return;
};
let (encoding, has_bom) = self
.buffer_store
.read(cx)
.get(buffer_id)
.map(|buffer| {
let buffer = buffer.read(cx);
(buffer.encoding(), buffer.has_bom())
})
.unwrap_or((encoding_rs::UTF_8, false));
let recv = repo.update(cx, |repo, cx| {
log::debug!("hunks changed for {}", path.as_unix_str());
repo.spawn_set_index_text_job(
path,
new_index_text,
encoding,
has_bom,
Some(hunk_staging_operation_count),
cx,
)
});
cx.spawn(async move |this, cx| {
if let Ok(Err(error)) = cx.background_spawn(recv).await {
this.update(cx, |this, cx| {
if let Some(diff_state) = this.diffs.get(&buffer_id).cloned() {
diff_state.update(cx, |diff_state, cx| {
diff_state.clear_pending_index_edits_and_hunks(cx);
});
}
cx.emit(GitStoreEvent::IndexWriteError(error));
})
.ok();
}
})
.detach();View on GitHub (pinned to 916fc2b8cb)