Commit 853ca746 authored by Nihad Abbasov's avatar Nihad Abbasov

fix typo according to docs and tests

parent 00b280c3
...@@ -37,11 +37,11 @@ module Gitlab ...@@ -37,11 +37,11 @@ module Gitlab
# #
# Parameters: # Parameters:
# id (required) - The ID or code name of a project # id (required) - The ID or code name of a project
# branch_id (required) - The name of the branch # branch (required) - The name of the branch
# Example Request: # Example Request:
# GET /projects/:id/repository/branches/:branch_id # GET /projects/:id/repository/branches/:branch
get ":id/repository/branches/:branch_id" do get ":id/repository/branches/:branch" do
@branch = user_project.repo.heads.find { |item| item.name == params[:branch_id] } @branch = user_project.repo.heads.find { |item| item.name == params[:branch] }
present @branch, :with => Entities::RepoObject present @branch, :with => Entities::RepoObject
end end
......
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