Merge branch 'songtronix/improve-version-mismatch' into 'master'

more robust version detection

Closes #350

See merge request veloren/veloren!789
This commit is contained in:
Songtronix 2020-02-09 18:32:29 +00:00
commit d53d7f4649

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()
{