Fix git_version!() when not in git repo (fix #100)

This commit is contained in:
Alex 2021-10-11 14:26:54 +02:00
parent f6060b92aa
commit 1acf7e4c66
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1

View file

@ -423,7 +423,11 @@ impl AdminRpcHandler {
writeln!( writeln!(
&mut ret, &mut ret,
"\nGarage version: {}", "\nGarage version: {}",
git_version::git_version!() git_version::git_version!(
prefix = "git:",
cargo_prefix = "cargo:",
fallback = "unknown"
)
) )
.unwrap(); .unwrap();