Rerun if .git/HEAD changed
This commit is contained in:
parent
8e1bf9b129
commit
5d7b140ba1
@ -7,5 +7,6 @@ fn main() {
|
||||
.output()
|
||||
.unwrap();
|
||||
let git_hash = String::from_utf8(output.stdout).unwrap();
|
||||
println!("cargo:rustc-rerun-if-changed=.git/HEAD");
|
||||
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user