Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Silence git related errors on linux (#13083)

Conrad Irwine6def62c2347
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs
index 868508fb78a..2faa55221c6 100644
--- a/crates/zed/src/main.rs
+++ b/crates/zed/src/main.rs
@@ -324,13 +324,14 @@ fn main() {
}
let git_hosting_provider_registry = Arc::new(GitHostingProviderRegistry::new());
- let git_binary_path = if option_env!("ZED_BUNDLE").as_deref() == Some("true") {
- app.path_for_auxiliary_executable("git")
- .context("could not find git binary path")
- .log_err()
- } else {
- None
- };
+ let git_binary_path =
+ if cfg!(target_os = "macos") && option_env!("ZED_BUNDLE").as_deref() == Some("true") {
+ app.path_for_auxiliary_executable("git")
+ .context("could not find git binary path")
+ .log_err()
+ } else {
+ None
+ };
log::info!("Using git binary path: {:?}", git_binary_path);
let fs = Arc::new(RealFs::new(