on master help sign in
filter git revision on git command success exit code (#1674)
a8cf0c6Michael Davis
helix-term/build.rs+1
@@ -6,6 +6,7 @@ fn main() {
6 .args(&["rev-parse", "HEAD"])
6 .args(&["rev-parse", "HEAD"])
7 .output()
7 .output()
8 .ok()
8 .ok()
9+ .filter(|output| output.status.success())
9 .and_then(|x| String::from_utf8(x.stdout).ok());
10 .and_then(|x| String::from_utf8(x.stdout).ok());
10
11
11 let version: Cow<_> = match git_hash {
12 let version: Cow<_> = match git_hash {