Skip to content
代码片段 群组 项目
提交 e9123524 编辑于 作者: Terri Chu's avatar Terri Chu
浏览文件

Merge branch 'minor-lfs-performance-tweak' into 'master'

Minor performance tweak for LFS object downloads

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/126984



Merged-by: default avatarTerri Chu <tchu@gitlab.com>
Approved-by: default avatarRoss Byrne <robyrne@gitlab.com>
Approved-by: default avatarTerri Chu <tchu@gitlab.com>
Co-authored-by: default avatarRobert May <rmay@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -64,11 +64,13 @@ def download_objects!
.for_oids(objects_oids)
.index_by(&:oid)
guest_can_download = Guest.can?(:download_code, project)
objects.each do |object|
if lfs_object = existing_oids[object[:oid]]
object[:actions] = download_actions(object, lfs_object)
if Guest.can?(:download_code, project)
if guest_can_download
object[:authenticated] = true
end
else
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册