mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
Fix editor build script always being rerun (#3156)
This commit is contained in:
parent
22aa8c1264
commit
1808bea2cf
1 changed files with 0 additions and 4 deletions
|
|
@ -10,10 +10,6 @@ fn main() {
|
|||
println!("cargo:rerun-if-env-changed=GRAPHITE_GIT_COMMIT_BRANCH");
|
||||
println!("cargo:rerun-if-env-changed=GITHUB_HEAD_REF");
|
||||
|
||||
// Instruct Cargo to rerun this build script if the Git HEAD or refs change.
|
||||
println!("cargo:rerun-if-changed=.git/HEAD");
|
||||
println!("cargo:rerun-if-changed=.git/refs/heads");
|
||||
|
||||
// Try to get the commit information from the environment (e.g. set by CI), otherwise fall back to Git commands.
|
||||
let commit_date = env_or_else("GRAPHITE_GIT_COMMIT_DATE", || git_or_unknown(&["log", "-1", "--format=%cI"]));
|
||||
let commit_hash = env_or_else("GRAPHITE_GIT_COMMIT_HASH", || git_or_unknown(&["rev-parse", "HEAD"]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue