Use correct .git path in build.rs (#4145)

This commit is contained in:
François-Xavier Talbot
2025-08-09 14:59:22 -04:00
committed by GitHub
parent 3b8cd661bc
commit 544f63512a

View File

@@ -14,7 +14,7 @@ fn main() {
let git_hash = String::from_utf8(output.stdout)
.expect("valid UTF-8 output from `git` invocation");
println!("cargo::rerun-if-changed=.git/HEAD");
println!("cargo::rerun-if-changed=../../.git/HEAD");
println!("cargo::rustc-env=GIT_HASH={}", git_hash.trim());
let timedate_fmt = Local::now().format("%F @ %I:%M %p");