Commit 8fdd419a authored by Alejandro Rodríguez's avatar Alejandro Rodríguez

Improve performance of searching tags by name by using a memorized tag array

parent 8ef64958
...@@ -9,6 +9,7 @@ v 8.10.0 (unreleased) ...@@ -9,6 +9,7 @@ v 8.10.0 (unreleased)
v 8.9.1 v 8.9.1
- Fix GitLab project import issues related to notes and builds - Fix GitLab project import issues related to notes and builds
- Improve performance of searching repository tags by name by using a memorized tag array
- Fix 404 when accessing pipelines as guest user on public projects - Fix 404 when accessing pipelines as guest user on public projects
v 8.9.0 v 8.9.0
......
...@@ -130,7 +130,7 @@ class Repository ...@@ -130,7 +130,7 @@ class Repository
end end
def find_tag(name) def find_tag(name)
raw_repository.tags.find { |tag| tag.name == name } tags.find { |tag| tag.name == name }
end end
def add_branch(user, branch_name, target) def add_branch(user, branch_name, target)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment