Exclude nightly tag from git describe to fix version string

This commit is contained in:
Laurențiu Nicola 2021-04-13 09:20:17 +03:00
parent 27e80e9438
commit 3b964c0c81

View File

@ -39,7 +39,8 @@ fn set_rerun() {
} }
fn rev() -> Option<String> { fn rev() -> Option<String> {
let output = Command::new("git").args(&["describe", "--tags"]).output().ok()?; let output =
Command::new("git").args(&["describe", "--tags", "--exclude", "nightly"]).output().ok()?;
let stdout = String::from_utf8(output.stdout).ok()?; let stdout = String::from_utf8(output.stdout).ok()?;
Some(stdout) Some(stdout)
} }