From e6def62c2347c72f6dc3f479e1763d6249ef6702 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Fri, 14 Jun 2024 22:38:13 -0600 Subject: [PATCH] Silence git related errors on linux (#13083) It's hard to imagine a world where we should package this on linux. Release Notes: - N/A --- crates/zed/src/main.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index 868508fb78a0de68ee2ab024292ca6418ae73f10..2faa55221c637b33b0cc95dd958221153d058f61 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(