1db4d74 If the target is a link and does not exists, remove it before proceeding

Authored and Committed by pingou 3 years ago
    If the target is a link and does not exists, remove it before proceeding
    
    This allows to quickly fix all the git hooks on a pagure instance that
    was, for example, migrated from one python version to another and where
    thus all the symlinks are pointing to the old python version and thus
    dangling.
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
    
        
file modified
+2 -0