Better hooks -- handle bare repositories