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

This commit is contained in:
Alex Auvolat 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();