Force removal of worktrees
This commit is contained in:
parent
c7f71cb9fb
commit
291be8dba0
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue