Expanding paths with repos and hooks