Always fetch branches before finding the merge base, otherwise we could find an outdated merge base
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
		
							parent
							
								
									0bbf006454
								
							
						
					
					
						commit
						4fa83bbe90
					
				| 
						 | 
					@ -181,8 +181,6 @@ module Gitlab
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def find_merge_base_with_master(branch:)
 | 
					    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)
 | 
					      # 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
 | 
					      # In total we go (20 + 54 + 148 + 403 = 625) commits deeper
 | 
				
			||||||
      depth = 20
 | 
					      depth = 20
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue