Fix logic to update version when HEAD changes. (#10896)

pull/10898/head
Ryan Roden-Corrent 6 months ago committed by GitHub
parent 6f1437e9f3
commit 886d307b9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -50,6 +50,7 @@ fn main() {
.ok() .ok()
.filter(|output| output.status.success()) .filter(|output| output.status.success())
.and_then(|x| String::from_utf8(x.stdout).ok()) .and_then(|x| String::from_utf8(x.stdout).ok())
.map(|x| x.trim().to_string())
else { else {
return; return;
}; };
@ -67,6 +68,7 @@ fn main() {
.ok() .ok()
.filter(|output| output.status.success()) .filter(|output| output.status.success())
.and_then(|x| String::from_utf8(x.stdout).ok()) .and_then(|x| String::from_utf8(x.stdout).ok())
.map(|x| x.trim().to_string())
else { else {
return; return;
}; };

Loading…
Cancel
Save