summaryrefslogtreecommitdiff
path: root/lib/api/repositories.rb
diff options
context:
space:
mode:
authorVitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com>2017-10-05 19:48:05 +1100
committerVitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com>2017-10-05 19:48:05 +1100
commitc55a9ac4ae56ed29d192ea71bca9fb31f88f5dc1 (patch)
tree9decf8385cf013bfc6bbae6b0d1c97ae71bb36f7 /lib/api/repositories.rb
parent8921af39e74976e37e92c786bd957883110f6522 (diff)
downloadgitlab-ce-c55a9ac4ae56ed29d192ea71bca9fb31f88f5dc1.tar.gz
Remove 'Repo' prefix from API entites
Diffstat (limited to 'lib/api/repositories.rb')
-rw-r--r--lib/api/repositories.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/repositories.rb b/lib/api/repositories.rb
index 2255fb1b70d..ceee3226732 100644
--- a/lib/api/repositories.rb
+++ b/lib/api/repositories.rb
@@ -35,7 +35,7 @@ module API
end
desc 'Get a project repository tree' do
- success Entities::RepoTreeObject
+ success Entities::TreeObject
end
params do
optional :ref, type: String, desc: 'The name of a repository branch or tag, if not given the default branch is used'
@@ -52,7 +52,7 @@ module API
tree = user_project.repository.tree(commit.id, path, recursive: params[:recursive])
entries = ::Kaminari.paginate_array(tree.sorted_entries)
- present paginate(entries), with: Entities::RepoTreeObject
+ present paginate(entries), with: Entities::TreeObject
end
desc 'Get raw blob contents from the repository'