0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-03 12:20:26 +01:00
gitea/routers
zeripath 9e6e1dc950
Improve checkBranchName (#17901)
The current implementation of checkBranchName is highly inefficient
involving opening the repository, the listing all of the branch names
checking them individually before then using using opened repo to get
the tags.

This PR avoids this by simply walking the references from show-ref
instead of opening the repository (in the nogogit case).

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-08 19:08:16 +00:00
..
api/v1 Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 2021-11-30 20:06:32 +00:00
common Update chi/middleware to chi/v5/middleware (#17888) 2021-12-02 21:58:08 +01:00
install Refactor install page (db type) (#17919) 2021-12-07 13:44:08 +08:00
private Move accessmode into models/perm (#17828) 2021-11-28 12:58:28 +01:00
utils
web Improve checkBranchName (#17901) 2021-12-08 19:08:16 +00:00
init.go Move repo archiver to models/repo (#17913) 2021-12-06 15:19:28 +08:00