0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-02-18 05:11:51 +01: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
attachment
auth
comments
cron Move repo archiver to models/repo (#17913) 2021-12-06 15:19:28 +08:00
externalaccount
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
lfs
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
pull Refactor various strings (#17784) 2021-12-02 15:28:08 +08:00
release
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
webhook
wiki Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 2021-11-30 20:06:32 +00:00