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