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:
authorHiroyuki Sato <h-sato@ruby-dev.jp>2016-12-15 08:21:12 +0300
committerHiroyuki Sato <h-sato@ruby-dev.jp>2016-12-20 12:24:24 +0300
commitb1ca2c7dd8c54d0c430eee3882fa10f8e747add3 (patch)
tree1527a2850900c13a22b0e0b8a0dbfe5fb93e1098 /lib/api/files.rb
parent4e93cb9c2f89387c02bc59e8fdf0d5a93c516f7a (diff)
Use Repository#cache_last_commit_sha_for_path in API
Diffstat (limited to 'lib/api/files.rb')
-rw-r--r--lib/api/files.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/files.rb b/lib/api/files.rb
index 28f306e45f3..187e2f3434d 100644
--- a/lib/api/files.rb
+++ b/lib/api/files.rb
@@ -70,7 +70,7 @@ module API
ref: params[:ref],
blob_id: blob.id,
commit_id: commit.id,
- last_commit_id: repo.last_commit_for_path(commit.sha, params[:file_path]).id
+ last_commit_id: repo.cache_last_commit_sha_for_path(commit.sha, params[:file_path])
}
end