meson: fix building mergetool docs

Building the documentation with meson when the build directory is not an immediate subdirectory of the source directory prints the following error [2/1349] Generating Documentation/mer... command (wrapped by meson to set env) ../../Documentation/generate-mergetool-list.sh: line 15: ../git-mergetool--lib.sh: No such file or directory The build does not fail because the failure is upstream of a pipe. Fix the error by passing the correct source directory when meson runs "generate-mergetool-list.sh". As that script sets $MERGE_TOOLS_DIR we do not need to set it in the environment when running the script. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Phillip Wood committed Feb 9, 2026 at 10:08 UTC 58e4eeeeb5439dc1f629579ba03844500827ff20
1 file changed +1 -4
Documentation/meson.build
+1 -4
@@ -352,13 +352,10 @@ foreach mode : [ 'diff', 'merge' ]
352 command: [
353 shell,
354 '@INPUT@',
355 - '..',
355 + meson.project_source_root(),
356 mode,
357 '@OUTPUT@'
358 ],
359 - env: [
360 - 'MERGE_TOOLS_DIR=' + meson.project_source_root() / 'mergetools',
361 - ],
359 input: 'generate-mergetool-list.sh',
360 output: 'mergetools-' + mode + '.adoc',
361 )