From 5258110d8c993cfc9b6eadf183d8fc48d6677c5d Mon Sep 17 00:00:00 2001 From: Fernando Ramos Date: Sat, 4 Jan 2020 00:41:07 +0100 Subject: [PATCH] fix 'git add' on executable files Signed-off-by: Fernando Ramos --- worktree_status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }