main: fix version reporting without git
Fixes #339. At least I hope so. I didn't come up with an idea how to test this with little effort. Signed-off-by: Stephan Renatus <srenatus@chef.io>
This commit is contained in:
@@ -36,7 +36,7 @@ fn main() {
|
||||
unsafe { signal::signal(signal::Signal::SIGINT, handler) }.unwrap();
|
||||
|
||||
if env::args().skip(1).any(|a| a == "-v" || a == "--version") {
|
||||
println!("{:}", git_version!());
|
||||
println!("{:}", git_version!(cargo_prefix = "cargo:", fallback = "unknown"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user