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

This commit is contained in:
Alejandro Rodríguez 2016-06-22 11:26:14 -04:00
parent 8ef649588b
commit 8fdd419a44
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ v 8.10.0 (unreleased)
v 8.9.1
- 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
v 8.9.0

View File

@ -130,7 +130,7 @@ class Repository
end
def find_tag(name)
raw_repository.tags.find { |tag| tag.name == name }
tags.find { |tag| tag.name == name }
end
def add_branch(user, branch_name, target)