summaryrefslogtreecommitdiff
path: root/lib/gitlab/git/tree.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-01-04 14:54:47 -0500
committerRobert Speicher <rspeicher@gmail.com>2017-01-04 19:09:29 -0500
commit2e20a71d21408d0a98b392209ff78bade26984bb (patch)
treed2ee61a04ab1a8fb47bfbd015dd6a4fa324b8fd1 /lib/gitlab/git/tree.rb
parenta00578ce5cdf4bab95990bca9e806c6322bb1384 (diff)
downloadgitlab-ce-2e20a71d21408d0a98b392209ff78bade26984bb.tar.gz
Ensure internal Gitlab::Git references use the namespacers-absorb-gitlab_git
Diffstat (limited to 'lib/gitlab/git/tree.rb')
-rw-r--r--lib/gitlab/git/tree.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/git/tree.rb b/lib/gitlab/git/tree.rb
index 76e3f112e2c..f7450e8b58f 100644
--- a/lib/gitlab/git/tree.rb
+++ b/lib/gitlab/git/tree.rb
@@ -17,7 +17,7 @@ module Gitlab
root_tree = commit.tree
tree = if path
- id = Tree.find_id_by_path(repository, root_tree.oid, path)
+ id = find_id_by_path(repository, root_tree.oid, path)
if id
repository.lookup(id)
else
@@ -28,7 +28,7 @@ module Gitlab
end
tree.map do |entry|
- Tree.new(
+ new(
id: entry[:oid],
root_id: root_tree.oid,
name: entry[:name],