Fixed internal auto-detected git version to not take the tip tag into account.

This commit is contained in:
Antoine POPINEAU 2020-07-04 21:58:12 +02:00
parent 554c704d00
commit d4cf3c312e
No known key found for this signature in database
GPG Key ID: A78AC64694F84063

View File

@ -8,7 +8,7 @@ fn main() {
}
fn get_version() -> Result<String, Box<dyn Error>> {
let tag = Command::new("git").args(&["describe", "--tags", "--abbrev=0"]).output()?;
let tag = Command::new("git").args(&["describe", "--abbrev=0"]).output()?;
let tag = match tag.status.code() {
Some(0) => String::from_utf8(tag.stdout)?,
_ => "0.0.0".to_string(),