git/contrib/credential/netrc
Patrick Steinhardt bdd04b91c3 meson: respect 'tests' build option in contrib
Both the "netrc" credential helper and git-subtree(1) from "contrib/"
carry a couple of tests with them. These tests get wired up in Meson
unconditionally even in the case where `-Dtests=false`. As those tests
depend on the `test_enviroment` variable, which only gets defined in
case `-Dtests=true`, the result is an error:

```
$ meson setup -Dtests=false -Dcontrib=subtree build
[...]

contrib/subtree/meson.build:15:27: ERROR: Unknown variable "test_environment".
```

Fix the issue by not defining these tests at all in case the "tests"
option is set to `false`.

Reported-by: Sam James <sam@gentoo.org>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-04-01 02:20:44 -07:00
..
.gitignore contrib/credential/netrc: make PERL_PATH configurable 2019-12-20 12:40:50 -08:00
Makefile contrib/credential/netrc: make PERL_PATH configurable 2019-12-20 12:40:50 -08:00
git-credential-netrc.perl netrc: ignore unknown lines (do not die) 2022-09-22 14:20:59 -07:00
meson.build meson: respect 'tests' build option in contrib 2025-04-01 02:20:44 -07:00
t-git-credential-netrc.sh contrib/credential: fix "netrc" tests with out-of-tree builds 2025-02-18 11:40:03 -08:00
test.command-option-gpg git-credential-netrc: accept gpg option 2018-05-14 08:53:08 +09:00
test.git-config-gpg git-credential-netrc: accept gpg option 2018-05-14 08:53:08 +09:00
test.netrc Add contrib/credentials/netrc with GPG support 2013-02-25 13:46:14 -08:00
test.netrc.gpg git-credential-netrc: accept gpg option 2018-05-14 08:53:08 +09:00
test.pl contrib/credential: fix "netrc" tests with out-of-tree builds 2025-02-18 11:40:03 -08:00