Refactor remote_repo, to return None
if there is no remote.