diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-23 21:09:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-23 21:09:25 +0300 |
commit | 967812838c7e7742729a4c7aeb9859f98a509622 (patch) | |
tree | 22db2e6642be51cb12535db7863331457e5523c3 /app/services | |
parent | 074d013e1eb3f6e0c27f96a3be8b9361254c8a98 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/projects/lfs_pointers/lfs_list_service.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/projects/lfs_pointers/lfs_list_service.rb b/app/services/projects/lfs_pointers/lfs_list_service.rb index a07fa93a279..59c86c08120 100644 --- a/app/services/projects/lfs_pointers/lfs_list_service.rb +++ b/app/services/projects/lfs_pointers/lfs_list_service.rb @@ -4,14 +4,12 @@ module Projects module LfsPointers class LfsListService < BaseService - REV = 'HEAD' - # Retrieve all lfs blob pointers and returns a hash # with the structure { lfs_file_oid => lfs_file_size } def execute return {} unless project&.lfs_enabled? - Gitlab::Git::LfsChanges.new(project.repository, REV) + Gitlab::Git::LfsChanges.new(project.repository) .all_pointers .map! { |blob| [blob.lfs_oid, blob.lfs_size] } .to_h |