diff options
author | Hiroyuki Sato <h-sato@ruby-dev.jp> | 2016-12-15 08:21:12 +0300 |
---|---|---|
committer | Hiroyuki Sato <h-sato@ruby-dev.jp> | 2016-12-20 12:24:24 +0300 |
commit | b1ca2c7dd8c54d0c430eee3882fa10f8e747add3 (patch) | |
tree | 1527a2850900c13a22b0e0b8a0dbfe5fb93e1098 /lib/api/files.rb | |
parent | 4e93cb9c2f89387c02bc59e8fdf0d5a93c516f7a (diff) |
Use Repository#cache_last_commit_sha_for_path in API
Diffstat (limited to 'lib/api/files.rb')
-rw-r--r-- | lib/api/files.rb | 2 |
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 |