1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 00:54:28 +00:00
gitea/services
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
..
agit Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
attachment Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
auth Move more model into models/user (#17826) 2021-11-28 22:11:58 +08:00
comments Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
cron Move repo archiver to models/repo (#17913) 2021-12-06 15:19:28 +08:00
externalaccount Move more model into models/user (#17826) 2021-11-28 22:11:58 +08:00
forms Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
gitdiff Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 2021-11-30 20:06:32 +00:00
issue Move accessmode into models/perm (#17828) 2021-11-28 12:58:28 +01:00
lfs Move accessmode into models/perm (#17828) 2021-11-28 12:58:28 +01:00
mailer allways set a message-id on mails (#17900) 2021-12-08 15:34:23 +08:00
migrations Add migrate from Codebase (#16768) 2021-12-02 23:24:02 +01:00
mirror Refactor various strings (#17784) 2021-12-02 15:28:08 +08:00
org Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
pull Refactor various strings (#17784) 2021-12-02 15:28:08 +08:00
release Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
repository Improve checkBranchName (#17901) 2021-12-08 19:08:16 +00:00
task Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 2021-11-30 20:06:32 +00:00
user Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
webhook Use hostmatcher to replace matchlist, improve security (#17605) 2021-11-20 17:34:05 +08:00
wiki Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 2021-11-30 20:06:32 +00:00