summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gitlab/ee_compat_check.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/ee_compat_check.rb b/lib/gitlab/ee_compat_check.rb
index 28a33f7e813..b84a9e4589a 100644
--- a/lib/gitlab/ee_compat_check.rb
+++ b/lib/gitlab/ee_compat_check.rb
@@ -125,7 +125,7 @@ module Gitlab
def generate_patch(patch_path, source:, target:)
FileUtils.rm(patch_path, force: true)
- find_merge_base_with_master(source: source, target: target)
+ find_merge_base(source: source, target: target)
step(
"Generating the patch against #{target} in #{patch_path}",
@@ -238,8 +238,7 @@ module Gitlab
end
end
- # TODO (rspeicher): Not always master
- def find_merge_base_with_master(source:, target:)
+ def find_merge_base(source:, target:)
# Start with (Math.exp(3).to_i = 20) until (Math.exp(6).to_i = 403)
# In total we go (20 + 54 + 148 + 403 = 625) commits deeper
depth = 20