Fix interdiff generation

This commit is contained in:
Quentin Boyer 2025-12-18 18:06:42 +01:00
parent b7f3fa081c
commit e05cab4e64

View file

@ -496,7 +496,9 @@ impl FormatPatch {
.ok_or(miette!("Interdiff patch path is not utf-8"))?
.to_string();
match path.ends_with(COVER_LETTER_NAME) || path.ends_with(STACKED_ON_NAME) {
match path.ends_with(&format!("{COVER_LETTER_NAME}.patch"))
|| path.ends_with(STACKED_ON_NAME)
{
true => Ok(None),
false => Ok(Some(path)),
}