Skip to content

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
alloncm committed Dec 20, 2024
1 parent 9e63325 commit d43594d
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
@@ -1,11 +1,11 @@
use std::process::Command;

fn main() {
// let git_path = std::path::Path::new("../.git");
// let head_path = git_path.join("HEAD");
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);
// println!("cargo:rerun-if-changed={}", head_path.to_str().unwrap());
println!("cargo:rerun-if-changed={}", head_path.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();
Expand Down

0 comments on commit d43594d

Please sign in to comment.