]> Sergey Matveev's repositories - public-inbox.git/commit
lei: do not read ~/.netrc by default
authorEric Wong <e@80x24.org>
Fri, 10 Sep 2021 09:08:49 +0000 (09:08 +0000)
committerEric Wong <e@80x24.org>
Fri, 10 Sep 2021 09:18:37 +0000 (09:18 +0000)
commit9d11ed460ce113dd10cd098e2dfa814fcfbddde9
treea733b03c4bf2cfc6ae1a070f3938b820c6900747
parentc1b44ad0a8901a488063c35eb2fe81cd6e051933
lei: do not read ~/.netrc by default

Since ~/.netrc isn't widely used by most (if any) NNTP and IMAP
clients, we won't read it by default for lei.  AFAIK, ~/.netrc
is mainly by FTP clients (e.g. ftp(1) and lftp(1)).  wget uses
it by default for HTTP(S) (and FTP), but curl does not.

To avoid breaking stable release use cases, public-inbox-watch
continues to read ~/.netrc by default.

The --netrc switch is supported by all existing lei commands
which may use curl.
lib/PublicInbox/GitCredential.pm
lib/PublicInbox/NetReader.pm