Make `Git::Repository` handle authentication more intelligently
The issue is that we have to remember to call try_add_credentials_to_netrc
when we use Git::Repository
. But we know the conditions under which credentials are needed, and those conditions are set by providing the credentials and by whether we're using lfs and/or an SSH key.
So it would be good if we could make Git::Repository
smart enough to add credentials to .netrc
automatically when needed.
We also need more unit test coverage of authentication handling in Git::Repository
. A few tests have failed because of git auth-related bugs.