mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
Fix logic to update version when HEAD changes. (#10896)
This commit is contained in:
parent
6f1437e9f3
commit
886d307b9e
@ -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…
Reference in New Issue
Block a user