aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/build.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/build.rs b/helix-term/build.rs
index 21dd5612..b5d62b28 100644
--- a/helix-term/build.rs
+++ b/helix-term/build.rs
@@ -6,6 +6,7 @@ fn main() {
.args(&["rev-parse", "HEAD"])
.output()
.ok()
+ .filter(|output| output.status.success())
.and_then(|x| String::from_utf8(x.stdout).ok());
let version: Cow<_> = match git_hash {