zed-industries/zed · error

Git Clone isn't supported for project guests

Error message

Git Clone isn't supported for project guests

What it means

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.

Solutions

  1. Ask the project host to perform the clone
  2. Clone the repository locally in your own Zed window instead
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/project/src/git_store.rs:3153 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/ce496e21823f626d. Report an issue: GitHub.

Appendix: source

Thrown at crates/project/src/git_store.rs:3161

    }

    fn write_index_text_for_buffer_id(
        &mut self,
        buffer_id: BufferId,
        new_index_text: Option<String>,
        cx: &mut Context<Self>,
    ) {
        let Some(diff_state) = self.diffs.get(&buffer_id) else {
            return;
        };
        let hunk_staging_operation_count = diff_state.update(cx, |diff_state, _| {
            diff_state.hunk_staging_operation_count += 1;
            diff_state.hunk_staging_operation_count
        });
        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,
            )

View on GitHub (pinned to 916fc2b8cb)