Skip to content

Commit 1808bea

Browse files
authored
Fix editor build script always being rerun (#3156)
1 parent 22aa8c1 commit 1808bea

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

editor/build.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ fn main() {
1010
println!("cargo:rerun-if-env-changed=GRAPHITE_GIT_COMMIT_BRANCH");
1111
println!("cargo:rerun-if-env-changed=GITHUB_HEAD_REF");
1212

13-
// Instruct Cargo to rerun this build script if the Git HEAD or refs change.
14-
println!("cargo:rerun-if-changed=.git/HEAD");
15-
println!("cargo:rerun-if-changed=.git/refs/heads");
16-
1713
// Try to get the commit information from the environment (e.g. set by CI), otherwise fall back to Git commands.
1814
let commit_date = env_or_else("GRAPHITE_GIT_COMMIT_DATE", || git_or_unknown(&["log", "-1", "--format=%cI"]));
1915
let commit_hash = env_or_else("GRAPHITE_GIT_COMMIT_HASH", || git_or_unknown(&["rev-parse", "HEAD"]));

0 commit comments

Comments
 (0)