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 1b10449..576ae0a 100644 --- a/worktree.go +++ b/worktree.go @@ -722,7 +722,7 @@ func (w *Worktree) Clean(opts *CleanOptions) error { func (w *Worktree) doClean(status Status, opts *CleanOptions, dir string, files []os.FileInfo) error { for _, fi := range files { - if fi.Name() == ".git" { + if fi.Name() == GitDirName { continue } |