Insert hook in the repo