diff --git a/index.js b/index.js index 7f9d4cc..86bd108 100644 --- a/index.js +++ b/index.js @@ -129,7 +129,7 @@ async function gitSnapshot(argv) { } finally { // Remove added worktree. if (isAddedWorktree) { - await git(['worktree', 'remove', '-f', worktreePath], onCwdOpts); + await git(['worktree', 'remove', '--force', worktreePath], onCwdOpts); await git(['worktree', 'prune'], onCwdOpts); }