Unverified Commit 2cec9025 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Dont use cached collection for Repository find_branch and find_tag methods

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 04ff377c5c68
......@@ -14,6 +14,7 @@ v 8.3.0 (unreleased)
- Expose events API with comment information and author info
- Fix: Ensure "Remove Source Branch" button is not shown when branch is being deleted. #3583
- Run custom Git hooks when branch is created or deleted.
- Fix bug when simultaneously accepting multiple MRs results in MRs that are of "merged" status, but not merged to the target branch
v 8.2.3
- Fix application settings cache not expiring after changes (Stan Hu)
......@@ -100,11 +100,11 @@ def find_commits_by_message(query)
def find_branch(name)
branches.find { |branch| branch.name == name }
raw_repository.branches.find { |branch| branch.name == name }
def find_tag(name)
tags.find { |tag| tag.name == name }
raw_repository.tags.find { |tag| tag.name == name }
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