diff --git a/src/main.rs b/src/main.rs index 693dc0c..b3df745 100644 --- a/src/main.rs +++ b/src/main.rs @@ -384,7 +384,8 @@ impl FormatPatch { impl Drop for GitWorktree { fn drop(&mut self) { - self.exec(&["worktree", "remove", &self.path]).unwrap(); + self.exec(&["worktree", "remove", "--force", &self.path]) + .unwrap(); } }