]> source.dussan.org Git - gitea.git/commit
Restrict repository indexing by glob match (#7767)
authorguillep2k <18600385+guillep2k@users.noreply.github.com>
Wed, 11 Sep 2019 17:26:28 +0000 (14:26 -0300)
committerLauris BH <lauris@nix.lv>
Wed, 11 Sep 2019 17:26:28 +0000 (20:26 +0300)
commit72f6d5c882dc1adfd249e85576aaf6384ee39251
tree63c5c5bffb02eba06a10307f1c8f290e9be64386
parent3fd0eec900126d392ff7a45c510cfe64639c198e
Restrict repository indexing by glob match (#7767)

* Restrict repository indexing by file extension

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

* Corrected to pass lint gosimple

* Add wildcard support to REPO_INDEXER_EXTENSIONS

* This reverts commit 72a650c8e42f4abf59d5df7cd5dc27b451494cc6.

* Add wildcard support to REPO_INDEXER_EXTENSIONS (no make vendor)

* Simplify isIndexable() for better clarity

* Add gobwas/glob to vendors

* manually set appengine new release

* Implement better REPO_INDEXER_INCLUDE and REPO_INDEXER_EXCLUDE

* Add unit and integration tests

* Update app.ini.sample and reword config-cheat-sheet

* Add doc page and correct app.ini.sample

* Some polish on the doc

* Simplify code as suggested by @lafriks
38 files changed:
custom/conf/app.ini.sample
docs/content/doc/advanced/config-cheat-sheet.en-us.md
docs/content/doc/advanced/repo-indexer.en-us.md [new file with mode: 0644]
integrations/api_repo_test.go
integrations/gitea-repositories-meta/user2/glob.git/HEAD [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/config [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/description [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/hooks/applypatch-msg.sample [new file with mode: 0755]
integrations/gitea-repositories-meta/user2/glob.git/hooks/commit-msg.sample [new file with mode: 0755]
integrations/gitea-repositories-meta/user2/glob.git/hooks/fsmonitor-watchman.sample [new file with mode: 0755]
integrations/gitea-repositories-meta/user2/glob.git/hooks/post-update.sample [new file with mode: 0755]
integrations/gitea-repositories-meta/user2/glob.git/hooks/pre-applypatch.sample [new file with mode: 0755]
integrations/gitea-repositories-meta/user2/glob.git/hooks/pre-commit.sample [new file with mode: 0755]
integrations/gitea-repositories-meta/user2/glob.git/hooks/pre-push.sample [new file with mode: 0755]
integrations/gitea-repositories-meta/user2/glob.git/hooks/pre-rebase.sample [new file with mode: 0755]
integrations/gitea-repositories-meta/user2/glob.git/hooks/pre-receive.sample [new file with mode: 0755]
integrations/gitea-repositories-meta/user2/glob.git/hooks/prepare-commit-msg.sample [new file with mode: 0755]
integrations/gitea-repositories-meta/user2/glob.git/hooks/update.sample [new file with mode: 0755]
integrations/gitea-repositories-meta/user2/glob.git/info/exclude [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/objects/48/06cb9df135782b818c968c2fadbd2c150d23d6 [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/objects/59/fee614e09d1f1cd1e15e4b2a7e9c8873a81498 [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/objects/7c/8ac2f8d82a1eb5f6aaece6629ff11015f91eb4 [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/objects/8e/592e636d27ac144f92f7fe8c33631cbdea594d [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/objects/95/aff026f99a9ab76fbd01decb63dd3dbc03e498 [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/objects/ae/d1ffed24cc3cf9b80490795e893cae4bddd684 [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/objects/bf/d6a6583f9a9ac59bd726c1df26c64a89427ede [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/objects/c8/eb3b6c767ccb68411d0a1f6c769be69fb4d95a [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/objects/de/6be43fe8eb19ca3f4e934cb8b9a9a0b20fe865 [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/objects/ef/6b814b610d8e7717aa0f71fbe5842bcf814697 [new file with mode: 0644]
integrations/gitea-repositories-meta/user2/glob.git/refs/heads/master [new file with mode: 0644]
integrations/repo_search_test.go
models/fixtures/repo_unit.yml
models/fixtures/repository.yml
models/fixtures/user.yml
models/repo_indexer.go
models/repo_list_test.go
modules/setting/indexer.go
modules/setting/indexer_test.go [new file with mode: 0644]