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
def find_branch!(branch_name)
user_project.repository.find_branch(branch_name) || not_found!('Branch')
rescue Gitlab::Git::CommandError
render_api_error!('The branch refname is invalid', 400)
if Gitlab::GitRefValidator.validate(branch_name)
user_project.repository.find_branch(branch_name) || not_found!('Branch')
else
render_api_error!('The branch refname is invalid', 400)
end
end
def find_project_label(id)