Fix git_version!() when not in git repo (fix #100)
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing

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!(
&mut ret,
"\nGarage version: {}",
git_version::git_version!()
git_version::git_version!(
prefix = "git:",
cargo_prefix = "cargo:",
fallback = "unknown"
)
)
.unwrap();