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:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user