Fix build of remote_server when not in git repo (#24424)
Followup to #24258 Release Notes: - N/A
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user