• Elan Ruusamäe's avatar
    custom_hook: chain custom hooks · dbd4bc26
    Elan Ruusamäe authored
    update hooks lookup to use <hook>.d/* from repository hooks dir
    
    the order would be:
    
    1. <repository>.git/custom_hooks/<hook_name> - per project hook
    2. <repository>.git/custom_hooks/<hook_name>.d/* - per project hooks
    3. <repository>.git/hooks/<hook_name>.d/* - global hooks
    
    only executable files are matched and backup files excluded (*~)
    and the resulting list is sorted per each lookup
    dbd4bc26
gitlab_custom_hook.rb 2.59 KB