Include "executable" files in the index, as they are not necessarily binary (#7718)

This commit is contained in:
guillep2k 2019-08-02 12:14:50 -03:00 committed by Lunny Xiao
parent 06392479b4
commit 3566d2c860
2 changed files with 6 additions and 1 deletions

View file

@ -232,7 +232,7 @@ func addDelete(filename string, repo *Repository, batch rupture.FlushingBatch) e
}
func isIndexable(entry *git.TreeEntry) bool {
return entry.IsRegular()
return entry.IsRegular() || entry.IsExecutable()
}
// parseGitLsTreeOutput parses the output of a `git ls-tree -r --full-name` command