diff --git a/worktree_status.go b/worktree_status.go index 16ce93707..831c00c7b 100644 --- a/worktree_status.go +++ b/worktree_status.go @@ -490,7 +490,7 @@ func (w *Worktree) doUpdateFileToIndex(e *index.Entry, filename string, h plumbi return err } - if e.Mode.IsRegular() { + if e.Mode.IsFile() { e.Size = uint32(info.Size()) }