summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-24 09:32:10 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-24 09:55:01 -0600
commita530e9da3580e05a171b3ba0a3f4408afc000b10 (patch)
tree49e3787d12d2e7d3a40e3cdf1af0ff8643ac99e1 /app/models
parent9e39b317a3865688e9fb204fb8680d3e91958fec (diff)
downloadgitlab-ce-a530e9da3580e05a171b3ba0a3f4408afc000b10.tar.gz
Address review
Diffstat (limited to 'app/models')
-rw-r--r--app/models/repository.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 73256df0591..c3fceddb9ca 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -753,7 +753,7 @@ class Repository
author_email: nil, author_name: nil,
start_branch_name: nil, start_project: project)
- entry = tree_entry_at(start_branch_name || branch_name, path)
+ entry = start_project.repository.tree_entry_at(start_branch_name || branch_name, path)
if entry
if entry[:type] == :blob
raise Gitlab::Git::Repository::InvalidBlobName.new(
@@ -865,7 +865,7 @@ class Repository
end
actions.each do |options|
- index.__send__(options.delete(:action), options)
+ index.public_send(options.delete(:action), options)
end
options = {