Fix build of remote_server when not in git repo (#24424)

Followup to #24258

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-02-06 21:35:22 -07:00 committed by GitHub
parent d97adfc540
commit 35ef269233
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,10 @@ fn main() {
println!("{}", env!("ZED_PKG_VERSION")) println!("{}", env!("ZED_PKG_VERSION"))
} }
ReleaseChannel::Nightly | ReleaseChannel::Dev => { 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); std::process::exit(0);