From b28137d8f89a4f532a9e830931159077e31584f3 Mon Sep 17 00:00:00 2001 From: Soispha Peetz Date: Wed, 2 Dec 2026 18:22:37 +0100 Subject: pkgs/rollup: Also check if the `owner`'s tree is dirty in the general check Otherwise, we already advance the tag but refuse to apply the patches. --- pkgs/by-name/ro/rollup/src/main.rs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/ro/rollup/src/main.rs b/pkgs/by-name/ro/rollup/src/main.rs index 0150ca4b..7b7343a4 100644 --- a/pkgs/by-name/ro/rollup/src/main.rs +++ b/pkgs/by-name/ro/rollup/src/main.rs @@ -268,16 +268,6 @@ fn apply_patches( eprintln!("Successfully parsed all {} patch files.", patches.len()); - { - let (stdout, _) = git!(in applies_to; "status", "--porcelain"); - if !stdout.is_empty() { - bail!( - "`--to` (`{}`) workspace is dirty, refusing to continue.", - applies_to.display() - ); - } - } - for (idx, patch) in patches.iter().enumerate() { eprintln!( "Applying {}. patch: `{}`... ", @@ -405,6 +395,17 @@ fn check_owner(owner: &Owner) -> Result<()> { bail!("To directory (`{}`) is not readable", to.display()); } + { + let (stdout, _) = git!(in owner.applies_to; "status", "--porcelain"); + if !stdout.is_empty() { + bail!( + "owners (`{}`) workspace (`{}`) is dirty, refusing to continue.", + owner.name, + owner.applies_to.display() + ); + } + } + Ok(()) } -- cgit v1.3.1