fix(version): more robust version detection

Fixes #350
This commit is contained in:
Songtronix 2020-02-09 18:11:40 +01:00
parent a62eb1b17b
commit b8e12811bf

View File

@ -8,6 +8,8 @@ use std::{
fn main() {
// Get the current githash
// Note: It will compare commits. As long as the commits do not diverge from the
// server no version change will be detected.
match Command::new("git")
.args(&[
"log",
@ -15,6 +17,7 @@ fn main() {
"1",
"--pretty=format:%h/%cd",
"--date=format:%Y-%m-%d-%H:%M",
"--abbrev=8",
])
.output()
{