diff --git a/lib/api/files.rb b/lib/api/files.rb index 28f306e45f3fb06ef5a8ac2f33537b2e6b413848..187e2f3434d7e4c2141b741cc4a673006a08eb80 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