fix nightly

This commit is contained in:
extrawurst 2025-04-30 10:37:38 +02:00
parent 706cdf9243
commit 3453e4624d
2 changed files with 15 additions and 15 deletions

View file

@ -198,22 +198,22 @@ pub fn filter_commit_by_search(
.flatten()
.is_some_and(|diff| filter.match_diff(&diff));
let authors_match = filter
let authors_match = if filter
.options
.fields
.contains(SearchFields::AUTHORS)
.then(|| {
let author =
get_author_of_commit(&commit, &mailmap);
[author.email(), author.name()].iter().any(
|opt_haystack| {
opt_haystack.is_some_and(|haystack| {
filter.match_text(haystack)
})
},
)
})
.unwrap_or_default();
{
let author = get_author_of_commit(&commit, &mailmap);
[author.email(), author.name()].iter().any(
|opt_haystack| {
opt_haystack.is_some_and(|haystack| {
filter.match_text(haystack)
})
},
)
} else {
false
};
Ok(msg_summary_match
|| msg_body_match

View file

@ -44,6 +44,6 @@ fn main() {
format!("nightly {} ({})", build_date, get_git_hash())
};
println!("cargo:warning=buildname '{}'", build_name);
println!("cargo:rustc-env=GITUI_BUILD_NAME={}", build_name);
println!("cargo:warning=buildname '{build_name}'");
println!("cargo:rustc-env=GITUI_BUILD_NAME={build_name}");
}