Bump Gitaly version to v1.12.0

This commit is contained in:
Stan Hu 2018-12-21 23:41:37 +00:00 committed by Douglas Barbosa Alexandre
parent 06cef29a62
commit f5847911ca
2 changed files with 6 additions and 4 deletions

View File

@ -1 +1 @@
1.9.0 1.12.0

View File

@ -163,9 +163,11 @@ module API
end end
def find_branch!(branch_name) def find_branch!(branch_name)
user_project.repository.find_branch(branch_name) || not_found!('Branch') if Gitlab::GitRefValidator.validate(branch_name)
rescue Gitlab::Git::CommandError user_project.repository.find_branch(branch_name) || not_found!('Branch')
render_api_error!('The branch refname is invalid', 400) else
render_api_error!('The branch refname is invalid', 400)
end
end end
def find_project_label(id) def find_project_label(id)