Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-06-07 11:18:50 +0300
committerDouwe Maan <douwe@gitlab.com>2018-06-07 11:18:50 +0300
commit543459794a96c19e832ccfb6bb855cb60a84247f (patch)
tree6738cf653732afd0348d66c49b0618e7b271d45a /lib
parent5ebc461829403a6e0fbf596255bbf6e505c42648 (diff)
parent86d39016a26f73e82437d38fcf723677b97c1c8d (diff)
Merge branch 'fj-move-rev-list-option' into 'master'
Moving rev-list lfs options to LfsChanges See merge request gitlab-org/gitlab-ce!19497
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/git/lfs_changes.rb4
-rw-r--r--lib/gitlab/git/rev_list.rb4
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/gitlab/git/lfs_changes.rb b/lib/gitlab/git/lfs_changes.rb
index b9e5cf258f4..320b2ad007b 100644
--- a/lib/gitlab/git/lfs_changes.rb
+++ b/lib/gitlab/git/lfs_changes.rb
@@ -39,7 +39,9 @@ module Gitlab
end
def git_all_pointers
- rev_list.all_objects(require_path: true) do |object_ids|
+ params = { options: ["--filter=blob:limit=#{Gitlab::Git::Blob::LFS_POINTER_MAX_SIZE}"], require_path: true }
+
+ rev_list.all_objects(params) do |object_ids|
Gitlab::Git::Blob.batch_lfs_pointers(@repository, object_ids)
end
end
diff --git a/lib/gitlab/git/rev_list.rb b/lib/gitlab/git/rev_list.rb
index 79544ccf13d..33b641a090b 100644
--- a/lib/gitlab/git/rev_list.rb
+++ b/lib/gitlab/git/rev_list.rb
@@ -37,9 +37,9 @@ module Gitlab
get_objects(opts, &lazy_block)
end
- def all_objects(require_path: nil, &lazy_block)
+ def all_objects(options: [], require_path: nil, &lazy_block)
get_objects(including: :all,
- options: ["--filter=blob:limit=#{Gitlab::Git::Blob::LFS_POINTER_MAX_SIZE}"],
+ options: options,
require_path: require_path,
&lazy_block)
end