Move implementation of ObjectStore.get_graph_walker() to Repo.
Actually use Repo.get_parents.
Deprecate Repo.ref.
Fix test suite when run on systems without ~/.gitconfig.