Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix build of remote_server when not in git repo (#24424)
Michael Sloan35ef26923300
diff --git a/crates/remote_server/src/main.rs b/crates/remote_server/src/main.rsindex 080b7e1af06..715380dbf9a 100644--- a/crates/remote_server/src/main.rs+++ b/crates/remote_server/src/main.rs@@ -79,7 +79,10 @@ fn main() {println!("{}", env!("ZED_PKG_VERSION"))}ReleaseChannel::Nightly | ReleaseChannel::Dev => {- println!("{}", env!("ZED_COMMIT_SHA"))+ println!(+ "{}",+ option_env!("ZED_COMMIT_SHA").unwrap_or(release_channel.dev_name())+ )}};std::process::exit(0);