mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
d53d7f4649
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user