Skip to content

Commit

Permalink
more test??
Browse files Browse the repository at this point in the history
  • Loading branch information
alloncm committed Dec 20, 2024
1 parent d43594d commit c7cea55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ use std::process::Command;
fn main() {
let git_path = std::path::Path::new("../.git");
let head_path = git_path.join("HEAD");
// let current_branch = std::fs::read_to_string(&head_path).unwrap().replace("refs: ", "");
// let current_commit_file = git_path.join(&current_branch);
let current_branch = std::fs::read_to_string(&head_path).unwrap().replace("refs: ", "");
let current_commit_file = git_path.join(&current_branch);
println!("cargo:rerun-if-changed={}", head_path.to_str().unwrap());
// println!("cargo:rerun-if-changed={}", current_commit_file.to_str().unwrap());
println!("cargo:rerun-if-changed={}", current_commit_file.to_str().unwrap());

let output = Command::new("git").args(&["rev-parse", "--short", "HEAD"]).output().unwrap();
let git_hash = String::from_utf8(output.stdout).unwrap();
Expand Down

0 comments on commit c7cea55

Please sign in to comment.