{"record":{"id":"2805f0acaf01f9c4","repo":"zed-industries/zed","slug":"git-config-isn-t-support-for-project-guests","errorCode":null,"errorMessage":"Git Config isn't support for project guests","messagePattern":"Git Config isn't support for project guests","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/git_store.rs","lineNumber":3195,"sourceCode":"                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();\n    }\n\n    fn local_worktree_git_repos_changed(\n        &mut self,\n        worktree: Entity<Worktree>,\n        changed_repos: &UpdatedGitRepositoriesSet,\n        cx: &mut Context<Self>,\n    ) {\n        log::debug!(\"local worktree repos changed\");\n        debug_assert!(worktree.read(cx).is_local());\n\n        for repository in self.repositories.values() {\n            repository.update(cx, |repository, cx| {\n                let repo_abs_path = &repository.work_directory_abs_path;\n                if changed_repos.iter().any(|update| {\n                    update.old_work_directory_abs_path.as_ref() == Some(repo_abs_path)\n                        || update.new_work_directory_abs_path.as_ref() == Some(repo_abs_path)\n                }) {\n                    repository.reload_buffer_diff_bases(cx);","sourceCodeStart":3177,"sourceCodeEnd":3213,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/project/src/git_store.rs#L3177-L3213","documentation":"A project guest attempted to run a git config command; the remote GitStoreState path contains an explicit guard rejecting git config for collab participants, since arbitrary config commands are not proxied to the host.","triggerScenarios":"Thrown at crates/project/src/git_store.rs:3187 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the git config command in your own terminal against a local clone","Ask the host to change the configuration if it affects the shared project"],"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"}