Commit 27f904be authored by Yorick Peterse's avatar Yorick Peterse Committed by Robert Speicher

Merge branch '18924-gitlab-ce-tags-page-is-not-working-502-read-timeout' into 'master'

Use memorized tags array when searching tags by name

See merge request !4859
(cherry picked from commit 9d0ef60d)
parent 106f7f30
...@@ -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