• Show log

    Commit

  • Hash : 34987447
    Author : Patrick Steinhardt
    Date : 2020-06-30T10:13:26

    refdb: avoid unlimited spinning in case of symref cycles
    
    To determine whether another reflog entry needs to be written for HEAD
    on a reference update, we need to see whether HEAD directly or
    indirectly points to the reference we're updating. The resolve logic is
    currently completely unbounded except an error occurs, which effectively
    means that we'd be spinning forever in case we have a symref loop in the
    repository refdb.
    
    Let's fix the issue by using `git_refdb_resolve` instead, which is
    always bounded.