mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-10 17:11:03 +00:00
Change unknown-commit to unknown to make parsing easier (#6675)
This commit is contained in:
@@ -22,7 +22,7 @@ use regex::Regex;
|
||||
use std::process::Command;
|
||||
|
||||
fn expected_regex() -> Regex {
|
||||
Regex::new(r"^substrate (\d+\.\d+\.\d+(?:-.+?)?)-([a-f\d]+|unknown-commit)-(.+?)-(.+?)(?:-(.+))?$").unwrap()
|
||||
Regex::new(r"^substrate (\d+\.\d+\.\d+(?:-.+?)?)-([a-f\d]+|unknown)-(.+?)-(.+?)(?:-(.+))?$").unwrap()
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -31,11 +31,11 @@ pub fn generate_cargo_keys() {
|
||||
}
|
||||
Ok(o) => {
|
||||
println!("cargo:warning=Git command failed with status: {}", o.status);
|
||||
Cow::from("unknown-commit")
|
||||
Cow::from("unknown")
|
||||
},
|
||||
Err(err) => {
|
||||
println!("cargo:warning=Failed to execute git command: {}", err);
|
||||
Cow::from("unknown-commit")
|
||||
Cow::from("unknown")
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user