Force removal of worktrees

This commit is contained in:
Quentin Boyer 2025-01-14 11:25:43 +01:00
parent c7f71cb9fb
commit 291be8dba0

View file

@ -384,7 +384,8 @@ impl FormatPatch {
impl Drop for GitWorktree { impl Drop for GitWorktree {
fn drop(&mut self) { fn drop(&mut self) {
self.exec(&["worktree", "remove", &self.path]).unwrap(); self.exec(&["worktree", "remove", "--force", &self.path])
.unwrap();
} }
} }