Deprecate Repo.ref.
Fix test suite when run on systems without ~/.gitconfig.