Bump Gitaly version to v1.12.0
This commit is contained in:
parent
06cef29a62
commit
f5847911ca
|
@ -1 +1 @@
|
||||||
1.9.0
|
1.12.0
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue