Added Repo::getRefHead()