Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
853ca746
Commit
853ca746
authored
Aug 01, 2012
by
Nihad Abbasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo according to docs and tests
parent
00b280c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lib/api/projects.rb
lib/api/projects.rb
+7
-7
No files found.
lib/api/projects.rb
View file @
853ca746
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment