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
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-01-04 20:00:28 +0300
committerJacob Vosmaer <jacob@gitlab.com>2018-01-04 20:00:28 +0300
commitac2cb65ab3dc2688b3a1db9de661dc01ed196177 (patch)
treef9b312dba1ce181a4dfa44d8b9ec65a6c2293995 /lib/gitlab/git/blob.rb
parent1e950e3148d31cb3b242cb21be11e04964c2a037 (diff)
Remove the Commit#tree method
Diffstat (limited to 'lib/gitlab/git/blob.rb')
-rw-r--r--lib/gitlab/git/blob.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/git/blob.rb b/lib/gitlab/git/blob.rb
index 228d97a87ab..c4caa306b5d 100644
--- a/lib/gitlab/git/blob.rb
+++ b/lib/gitlab/git/blob.rb
@@ -154,8 +154,8 @@ module Gitlab
end
def find_by_rugged(repository, sha, path, limit:)
- commit = repository.lookup(sha)
- root_tree = commit.tree
+ rugged_commit = repository.lookup(sha)
+ root_tree = rugged_commit.tree
blob_entry = find_entry_by_path(repository, root_tree.oid, path)