0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-13 14:24:36 +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
gitdiff
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
user
webhook
wiki