BigW Consortium Gitlab

Commit b1ca2c7d by Hiroyuki Sato

Use Repository#cache_last_commit_sha_for_path in API

parent 4e93cb9c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment