Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Ignore user config when checking remote git URL for dev extensions (#52538)
Brandon Chinn0b984b5ade76
diff --git a/crates/extension/src/extension_builder.rs b/crates/extension/src/extension_builder.rsindex 1c204398c34..f0e78999412 100644--- a/crates/extension/src/extension_builder.rs+++ b/crates/extension/src/extension_builder.rs@@ -296,16 +296,12 @@ impl ExtensionBuilder {let remotes_output = util::command::new_command("git").arg("--git-dir").arg(&git_dir)- .args(["remote", "-v"])+ .args(["remote", "get-url", "origin"])+ .env("GIT_CONFIG_GLOBAL", "/dev/null").output().await?;let has_remote = remotes_output.status.success()- && String::from_utf8_lossy(&remotes_output.stdout)- .lines()- .any(|line| {- let mut parts = line.split(|c: char| c.is_whitespace());- parts.next() == Some("origin") && parts.any(|part| part == url)- });+ && String::from_utf8_lossy(&remotes_output.stdout).trim() == url;if !has_remote {bail!("grammar directory '{}' already exists, but is not a git clone of '{}'",