1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-07 19:17:21 +00:00

Use REPO_EXTENSIONS_LIST_INCLUDE instead of REPO_EXTENSIONS_LIST_EXCLUDE and have a more flexible extension pattern

This commit is contained in:
Guillermo Prandi
2019-08-06 02:51:42 -03:00
parent 4353c71b54
commit c48c37ad09
3 changed files with 16 additions and 7 deletions

View File

@ -239,7 +239,7 @@ func isIndexable(entry *git.TreeEntry) bool {
if cnt > 1 {
ext = strings.ToLower(parts[cnt-1])
}
if setting.Indexer.FileExtensions[ext] == setting.Indexer.ExcludeExtensions {
if setting.Indexer.FileExtensions[ext] != setting.Indexer.IncludeExtensions {
return false
}
}