diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-12-22 16:22:07 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-12-22 16:22:07 +0300 |
commit | a1aa0d7829445400053157e6dae4c610c494cb52 (patch) | |
tree | 931e97385ce83fefbb366d20b725731557c58b67 /lib/api/files.rb | |
parent | 6e2a6fd09167947a3bd8e1a4cda96dbfae395b3a (diff) | |
parent | 1a59766d0c7ed78a7167040af512842979d2414e (diff) |
Merge branch 'cache-last-commit-sha-for-path' into 'master'
Cache last commit id for path
See merge request !8098
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 532a317c89e..2e79e22e649 100644 --- a/lib/api/files.rb +++ b/lib/api/files.rb @@ -68,7 +68,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.last_commit_id_for_path(commit.sha, params[:file_path]) } end |