forked from forgejo/forgejo
Use REPO_EXTENSIONS_LIST_INCLUDE instead of REPO_EXTENSIONS_LIST_EXCLUDE and have a more flexible extension pattern
This commit is contained in:
parent
4353c71b54
commit
c48c37ad09
3 changed files with 16 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue