Skip to content
  • Brad King's avatar
    submodule: Search for merges only at end of recursive merge · 80988783
    Brad King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The submodule merge search is not useful during virtual merges because
    the results cannot be used automatically.  Furthermore any suggestions
    made by the search may apply to commits different than HEAD:sub and
    MERGE_HEAD:sub, thus confusing the user.  Skip searching for submodule
    merges during a virtual merge such as that between B and C while merging
    the heads of:
    
        B---BC
       / \ /
      A   X
       \ / \
        C---CB
    
    Run the search only when the recursion level is zero (!o->call_depth).
    This fixes known breakage tested in t7405-submodule-merge.
    
    Signed-off-by: default avatarBrad King <brad.king@kitware.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    80988783