0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 00:19:11 +01:00
gitea/routers/web/repo
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
..
activity.go
attachment.go
blame.go
branch.go Improve checkBranchName (#17901) 2021-12-08 19:08:16 +00:00
commit.go Refactor various strings (#17784) 2021-12-02 15:28:08 +08:00
compare.go Improve checkBranchName (#17901) 2021-12-08 19:08:16 +00:00
download.go
editor_test.go
editor.go
http_test.go
http.go Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 2021-11-30 20:06:32 +00:00
issue_content_history.go
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go Improve checkBranchName (#17901) 2021-12-08 19:08:16 +00:00
lfs.go
main_test.go
middlewares.go
migrate.go
milestone.go
projects_test.go
projects.go Support sorting for project board issuses (#17152) 2021-12-08 14:57:18 +08:00
pull_review.go
pull.go Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 2021-11-30 20:06:32 +00:00
release_test.go
release.go
repo.go Move repo archiver to models/repo (#17913) 2021-12-06 15:19:28 +08:00
search.go
setting_protected_branch.go Move accessmode into models/perm (#17828) 2021-11-28 12:58:28 +01:00
setting.go Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 2021-11-30 20:06:32 +00:00
settings_test.go Move accessmode into models/perm (#17828) 2021-11-28 12:58:28 +01:00
tag.go Move accessmode into models/perm (#17828) 2021-11-28 12:58:28 +01:00
topic.go
view.go
webhook.go Move accessmode into models/perm (#17828) 2021-11-28 12:58:28 +01:00
wiki_test.go
wiki.go Fix the bug: no wiki page can be created if the repo didn't have any page yet. (#17894) 2021-12-03 20:46:11 +01:00