From d869f6ff901344b02b27a7599b1174f8fed760c3 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Tue, 27 Jun 2017 11:06:49 +0200 Subject: [PATCH] Try removing the 'contains' option --- lib/gitlab/git/repository.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index c1f942f931a7bc..09ac0506895d1e 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -506,7 +506,6 @@ def ref_name_for_sha(ref_path, sha) # # +options+ is a Hash of optional arguments to git # :ref is the ref from which to begin (SHA1 or name) - # :contains is the commit contained by the refs from which to begin (SHA1 or name) # :max_count is the maximum number of commits to fetch # :skip is the number of commits to skip # :order is the commits order and allowed value is :none (default), :date, @@ -517,7 +516,7 @@ def ref_name_for_sha(ref_path, sha) def find_commits(options = {}) actual_options = options.dup - allowed_options = [:ref, :max_count, :skip, :contains, :order] + allowed_options = [:ref, :max_count, :skip, :order] actual_options.keep_if do |key| allowed_options.include?(key) @@ -530,10 +529,6 @@ def find_commits(options = {}) if actual_options[:ref] walker.push(rugged.rev_parse_oid(actual_options[:ref])) - elsif actual_options[:contains] - branches_contains(actual_options[:contains]).each do |branch| - walker.push(branch.target_id) - end else rugged.references.each("refs/heads/*") do |ref| walker.push(ref.target_id) -- GitLab