]> source.dussan.org Git - gitea.git/commit
Optimize branch protection rule loading (#32280)
author6543 <6543@obermui.de>
Tue, 29 Oct 2024 14:43:47 +0000 (15:43 +0100)
committerGitHub <noreply@github.com>
Tue, 29 Oct 2024 14:43:47 +0000 (15:43 +0100)
commit5d43801b72790ce5862aefdc4520edb06bb4cbba
tree1e9500720e7f763fdfd69dcad7d6f9fbde0622dc
parentb7fb20e73e63b8edc9b90c52073e248bef428fcc
Optimize branch protection rule loading (#32280)

before if it was nonglob each load would try to glob it and the check
that is not glob ... now we only do that once and no future loading will
trigger it

---
*Sponsored by Kithara Software GmbH*
models/git/protected_banch_list_test.go [deleted file]
models/git/protected_branch.go
models/git/protected_branch_list_test.go [new file with mode: 0644]