diff options
author | guillep2k <github.com@mailfilter.com.ar> | 2019-08-02 12:14:50 -0300 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-08-02 23:14:50 +0800 |
commit | 3566d2c860b0ad3ab7d6d5fb1490eb9a5b5f5974 (patch) | |
tree | bcda45d54f63297f97f60d42cd505a438f9a0d91 /models | |
parent | 06392479b44f4af913a9067fba6d4947ed323235 (diff) | |
download | gitea-3566d2c860b0ad3ab7d6d5fb1490eb9a5b5f5974.tar.gz gitea-3566d2c860b0ad3ab7d6d5fb1490eb9a5b5f5974.zip |
Include "executable" files in the index, as they are not necessarily binary (#7718)
Diffstat (limited to 'models')
-rw-r--r-- | models/repo_indexer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_indexer.go b/models/repo_indexer.go index 83383807a7..3a41e0525a 100644 --- a/models/repo_indexer.go +++ b/models/repo_indexer.go @@ -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 |