From 96e64b63888ef19fdbd783b37f387908caed36bc Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 9 Oct 2022 17:57:01 +0800 Subject: [PATCH] always emit long format tags --- xtask/src/versioning.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtask/src/versioning.rs b/xtask/src/versioning.rs index 169106c9d..c222e136d 100644 --- a/xtask/src/versioning.rs +++ b/xtask/src/versioning.rs @@ -10,13 +10,13 @@ use chrono::Local; pub(crate) fn generate_version(add_timestamp: bool) { let output = if cfg!(target_os = "windows") { Command::new("cmd") - .args(["/C", "git describe --tags"]) + .args(["/C", "git describe --tags --long"]) .output() .expect("failed to execute process") } else { Command::new("sh") .arg("-c") - .arg("git describe --tags") + .arg("git describe --tags --long") .output() .expect("failed to execute process") };