diff options
Diffstat (limited to 'disable-git-checks.patch')
-rw-r--r-- | disable-git-checks.patch | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/disable-git-checks.patch b/disable-git-checks.patch index 9c8f719e8a01..da7a056898b7 100644 --- a/disable-git-checks.patch +++ b/disable-git-checks.patch @@ -13,7 +13,7 @@ We provide source tarballs without git functionality. fn files(&mut self, build: &mut impl build::FilesHandle) { --- a/build/runner/src/build.rs +++ b/build/runner/src/build.rs -@@ -161,12 +161,7 @@ fn maybe_update_buildhash(build_root: &Utf8Path) { +@@ -161,13 +161,7 @@ fn maybe_update_buildhash(build_root: &Utf8Path) { } fn get_buildhash() -> String { @@ -21,7 +21,8 @@ We provide source tarballs without git functionality. - .args(["rev-parse", "--short=8", "HEAD"]) - .output() - .expect("git"); -- assert!(output.status.success(), "git failed"); +- assert!(output.status.success(), +- "Invoking 'git' failed. Make sure you're building from a clone of the git repo, and that 'git' is installed."); - String::from_utf8(output.stdout).unwrap().trim().into() + String::from("MY_REV").trim().into() } |