Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-04-12 13:50:21 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-04-12 15:12:30 +0300
commitf81352f531b22d02b1b80cfbd6daed809ea8cf5d (patch)
treef32f4ea1ff6388c330a08932730ec596e944c4d0 /lib
parent20d4ca4cc3599b4335b73fd7c3bb0354efe397b4 (diff)
Fix minor styling issues from code review
Diffstat (limited to 'lib')
-rw-r--r--lib/api/tags.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/tags.rb b/lib/api/tags.rb
index 731a68082ba..d1a10479e44 100644
--- a/lib/api/tags.rb
+++ b/lib/api/tags.rb
@@ -19,15 +19,15 @@ module API
# Get a single repository tag
#
# Parameters:
- # id (required) - The ID of a project
+ # id (required) - The ID of a project
# tag_name (required) - The name of the tag
# Example Request:
# GET /projects/:id/repository/tags/:tag_name
- get ":id/repository/tags/:tag_name", requirements: { tag_name: /.*/ } do
+ get ":id/repository/tags/:tag_name", requirements: { tag_name: /.+/ } do
tag = user_project.repository.find_tag(params[:tag_name])
not_found!('Tag') unless tag
- present tag, with: Entities::RepoTag, project: user_project
+ present tag, with: Entities::RepoTag, project: user_project
end
# Create tag