Skip to content
Snippets Groups Projects
Verified Commit 4fa83bbe authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Always fetch branches before finding the merge base, otherwise we could find an outdated merge base


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 0bbf0064
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -181,8 +181,6 @@ module Gitlab
end
 
def find_merge_base_with_master(branch:)
return if merge_base_found?
# 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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment