Fix git_version!() when not in git repo (fix #100)
This commit is contained in:
parent
f6060b92aa
commit
1acf7e4c66
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue