summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-04-19 12:31:31 +0000
committerRémy Coutable <remy@rymai.me>2016-04-19 12:31:31 +0000
commitbfa16dbcfba2a3233209f6403a0074d42e664df6 (patch)
tree9d9724af20b64745d51f22a861296247ac32cdf0 /lib
parentfd13cd189fd360a637a61f852aed523705ff4689 (diff)
parent7fa3a1c05c9ab04d59c9000e69881cd1cbeeaf1d (diff)
downloadgitlab-ce-bfa16dbcfba2a3233209f6403a0074d42e664df6.tar.gz
Merge branch 'api-fix-annotated-tags' into 'master'
API: Present an array of Gitlab::Git::Tag instead of array of rugged tags The annotated message was always `null` because the wrong array was presented. The entity requires an array of `Gitlab::Git::Tags` instead an array of raw rugged tags was presented. Since a rugged tag does not respond to `message` to get the annotated message, this was always `null`. See merge request !3764
Diffstat (limited to 'lib')
-rw-r--r--lib/api/tags.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/tags.rb b/lib/api/tags.rb
index d1a10479e44..3e1ed3fe5c7 100644
--- a/lib/api/tags.rb
+++ b/lib/api/tags.rb
@@ -12,7 +12,7 @@ module API
# Example Request:
# GET /projects/:id/repository/tags
get ":id/repository/tags" do
- present user_project.repo.tags.sort_by(&:name).reverse,
+ present user_project.repository.tags.sort_by(&:name).reverse,
with: Entities::RepoTag, project: user_project
end