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
This commit is contained in:
Conrad Irwin 2024-06-14 22:38:13 -06:00 committed by GitHub
parent ff2347dff5
commit e6def62c23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -324,7 +324,8 @@ fn main() {
}
let git_hosting_provider_registry = Arc::new(GitHostingProviderRegistry::new());
let git_binary_path = if option_env!("ZED_BUNDLE").as_deref() == Some("true") {
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()