Fix build of remote_server when not in git repo (#24424)
Followup to #24258 Release Notes: - N/A
This commit is contained in:
parent
d97adfc540
commit
35ef269233
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue