contrib/credential/netrc: work outside a repo
authorDenton Liu <redacted>
Fri, 20 Dec 2019 18:45:01 +0000 (10:45 -0800)
committerJunio C Hamano <redacted>
Fri, 20 Dec 2019 20:40:52 +0000 (12:40 -0800)
commit6579d93a9789448c54203939650ca24409635f80
treeff0852be63c3f70ada5afd44ca9ec596bcd90f55
parent1c78c78d2513eaf22105c87484c65b4eecdf0bfc
contrib/credential/netrc: work outside a repo

Currently, git-credential-netrc does not work outside of a git
repository. It fails with the following error:

fatal: Not a git repository: . at /usr/share/perl5/Git.pm line 214.

There is no real reason why need to be within a repository, though.
Credential helpers should be able to work just fine outside the
repository as well.

Call the non-self version of config() so that git-credential-netrc no
longer needs to be run within a repository.

Signed-off-by: Denton Liu <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/credential/netrc/git-credential-netrc.perl
git clone https://git.99rst.org/PROJECT