diff options
| -rw-r--r-- | pkgs/by-name/ro/rollup/src/main.rs | 21 |
1 files 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(()) } |
