Skip to content

Commit

Permalink
fix build on 1.76.0
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Oct 22, 2024
1 parent e893513 commit 365a3e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn configure_rerun_if_head_commit_changed() {
}
gix_discover::repository::Path::WorkTree(work_dir) => {
let git_refs_heads = work_dir.join(".git/refs/heads");
println!("cargo::rerun-if-changed={}", git_refs_heads.display());
println!("cargo:rerun-if-changed={}", git_refs_heads.display());
break;
}
gix_discover::repository::Path::LinkedWorkTree { work_dir, .. } => {
Expand All @@ -56,7 +56,7 @@ fn main() -> shadow_rs::SdResult<()> {
configure_rerun_if_head_commit_changed();

println!(
"cargo::rustc-env=SOURCE_TIMESTAMP={}",
"cargo:rustc-env=SOURCE_TIMESTAMP={}",
if let Ok(t) = get_source_time() {
format_timestamp(t)
} else {
Expand Down

0 comments on commit 365a3e0

Please sign in to comment.