fix git commit char length in version

This commit is contained in:
Dongdong Zhou 2024-07-22 20:42:05 +01:00
parent 8a610b0442
commit 20fa316f2c
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ fn get_head() -> Option<String> {
};
let commit = reference.target();
println!("cargo::warning=Commit found: {commit:?}");
commit.map(|s| s.to_string().split_at(8).0.to_owned())
commit.map(|s| s.to_string().split_at(7).0.to_owned())
}
#[cfg(target_os = "linux")]