git/contrib/subtree
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
..
t Makefile: set default goals in makefiles 2025-02-18 09:02:26 -08:00
.gitignore contrib/subtree: fix building docs 2025-01-17 09:56:37 -08:00
COPYING Add 'contrib/subtree/' from commit 'd3a04e06c77d57978bb5230361c64946232cc346' 2012-04-09 20:22:55 -05:00
INSTALL Fix git-subtree install instructions 2012-04-09 22:26:19 -05:00
Makefile contrib/subtree: rename .txt to .adoc 2025-03-01 10:00:52 -08:00
README Add 'contrib/subtree/' from commit 'd3a04e06c77d57978bb5230361c64946232cc346' 2012-04-09 20:22:55 -05:00
git-subtree.adoc contrib/subtree: rename .txt to .adoc 2025-03-01 10:00:52 -08:00
git-subtree.sh contrib: fix typos 2024-10-10 13:31:12 -07:00
meson.build meson: respect 'tests' build option in contrib 2025-04-01 02:20:44 -07:00
todo subtree: give the docs a once-over 2021-04-28 16:47:19 +09:00

README

Please read git-subtree.txt for documentation.

Please don't contact me using github mail; it's slow, ugly, and worst of
all, redundant. Email me instead at apenwarr@gmail.com and I'll be happy to
help.

Avery