Change summary
crates/zed/src/main.rs | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
Detailed changes
@@ -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(