On 2021-05-20 at 09:51:25, Siavash wrote: > > which is located in `contrib/credential/netrc`. > > If I'm not mistaken, it's because it sets the `SCRIPT_PERL` environment variable here: > https://github.com/git/git/blob/88dd4282d949cdafff516650c1be8aaf4d67983f/contrib/credential/netrc/Makefile#L13 > > But the Git Makefile un-sets environment variables here: > https://github.com/git/git/blob/88dd4282d949cdafff516650c1be8aaf4d67983f/Makefile#L587 > > Also credential helpers in `contrib/credential` are not present in the > output of `git help -a`, is that a bug? Things in contrib are not built by default because they don't necessarily work everywhere. For example, the osxkeychain credential helper won't compile on Linux because the requisite shared libraries are specific to macOS. You'll need to compile them manually and install them in a suitable location. Note that that location can be someplace like ~/bin, if that's in your PATH. For example, since the Debian packages don't yet ship the libsecret credential helper, I've built it and placed it there. Now that I've done that, git help -a shows git credential-libsecret as an option. -- brian m. carlson (he/him or they/them) Houston, Texas, US
Attachment:
signature.asc
Description: PGP signature