{"record":{"id":"8f8461cb5dd35285","repo":"zed-industries/zed","slug":"git-config-isn-t-yet-supported-for-remote-projects","errorCode":null,"errorMessage":"Git Config isn't yet supported for remote projects","messagePattern":"Git Config isn't yet supported for remote projects","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/git_store.rs","lineNumber":3193,"sourceCode":"    pub fn git_config(&self, path: Arc<Path>, args: Vec<String>, cx: &App) -> Task<Result<String>> {\n        match &self.state {\n            GitStoreState::Local { fs, .. } => {\n                let fs = fs.clone();\n                cx.background_executor()\n                    .spawn(async move { fs.git_config(&path, args).await })\n            }\n            GitStoreState::Remote {\n                upstream_client, ..\n            } => {\n                // Prevent running git config commands for collab.\n                if upstream_client.is_via_collab() {\n                    return Task::ready(Err(anyhow!(\n                        \"Git Config isn't support for project guests\"\n                    )));\n                }\n\n                // TODO: Implement this for remote repositories.\n                Task::ready(Err(anyhow!(\n                    \"Git Config isn't yet supported for remote projects\"\n                )))\n            }\n        }\n    }\n\n    async fn handle_update_repository(\n        this: Entity<Self>,\n        envelope: TypedEnvelope<proto::UpdateRepository>,\n        mut cx: AsyncApp,\n    ) -> Result<()> {\n        this.update(&mut cx, |this, cx| {\n            let path_style = this.worktree_store.read(cx).path_style();\n            let mut update = envelope.payload;\n\n            let id = RepositoryId::from_proto(update.id);\n            let client = this.upstream_client().context(\"no upstream client\")?;\n            let is_new = !this.repositories.contains_key(&id);","sourceCodeStart":3175,"sourceCodeEnd":3211,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/project/src/git_store.rs#L3175-L3211","documentation":"git_config was called while the project is in the Remote (non-collab) state; running git config against a remote project's filesystem is not implemented, so the request is rejected with this guard error before any RPC is made.","triggerScenarios":"Thrown at crates/project/src/git_store.rs:3193 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run git config locally where the repository resides","Reopen the project locally if config changes are needed from this machine"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}