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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4e39fc1a
Commit
4e39fc1a
authored
Sep 08, 2018
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop
parent
a14e9cfd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
lib/api/helpers.rb
lib/api/helpers.rb
+3
-5
No files found.
lib/api/helpers.rb
View file @
4e39fc1a
...
...
@@ -157,12 +157,10 @@ module API
end
def
find_branch!
(
branch_name
)
begin
user_project
.
repository
.
find_branch
(
branch_name
)
||
not_found!
(
'Branch'
)
rescue
Gitlab
::
Git
::
CommandError
render_api_error!
(
'The branch refname is invalid'
,
400
)
end
end
def
find_project_label
(
id
)
labels
=
available_labels_for
(
user_project
)
...
...
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