Rename Repository.head to Repository.head_ref