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-06 22:03:24 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-04-06 22:03:24 +0300
commitdc3272dccbf2462ad8a7ee8f677086ffabae3afb (patch)
tree0a3c096f3b58e60c4b9618bc6e86e81985cddf3b /lib
parent77e178b5e13633090307afa915eea50927fdabda (diff)
Revert "API: Ability to retrieve a single tag"
This reverts commit 7f287c9136d5d1cdda8df170c6e772ca82aad1e9.
Diffstat (limited to 'lib')
-rw-r--r--lib/api/tags.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/api/tags.rb b/lib/api/tags.rb
index 731a68082ba..2d8a9e51bb9 100644
--- a/lib/api/tags.rb
+++ b/lib/api/tags.rb
@@ -16,20 +16,6 @@ module API
with: Entities::RepoTag, project: user_project
end
- # Get a single repository tag
- #
- # Parameters:
- # 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
- tag = user_project.repository.find_tag(params[:tag_name])
- not_found!('Tag') unless tag
-
- present tag, with: Entities::RepoTag, project: user_project
- end
-
# Create tag
#
# Parameters: