diff options
Diffstat (limited to 'worktree.go')
-rw-r--r-- | worktree.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worktree.go b/worktree.go index 73e638a..4aeae01 100644 --- a/worktree.go +++ b/worktree.go @@ -771,7 +771,7 @@ func (w *Worktree) doClean(status Status, opts *CleanOptions, dir string, files } } - if opts.Dir { + if opts.Dir && dir != "" { return doCleanDirectories(w.Filesystem, dir) } return nil |