Skip to content

Properly recreate hooks when pointing to wrong path especially when migrating to omnibus.

In a migration to Omnibus scenario when the backup is restored the hooks symlinks are pointing to wrong location inside /home/git/gitlab... which should be recreated accordingly to the Omnibus paths...

This patch first checks if the hooks' symlinks are not valid to recreate them otherwise normal behavior is applied.

Issues related to this merge request are:

Merge request reports