add hooks to repository reference