Check for empty repo before creating hooks