]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t0450: fix test for out-of-tree builds
authorToon Claes <toon@iotcl.com>
Fri, 8 Aug 2025 09:59:42 +0000 (11:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Aug 2025 16:12:16 +0000 (09:12 -0700)
When using Meson, builds are out-of-tree and $GIT_BUILD_DIR gets set to
the path where the build output is landing. To locate the Documentation
sources, test 't0450' was using that path.

Modify test 't0450' to use `$GIT_SOURCE_DIR/Documentation` to find the
documentation sources.

Signed-off-by: Toon Claes <toon@iotcl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0450-txt-doc-vs-help.sh

index 2f7504ae7e9090e0fe3ac083135118ca5fabd9a0..da2d0af5b07810d46c54df5cc8153f80109d25fc 100755 (executable)
@@ -41,7 +41,7 @@ help_to_synopsis () {
 }
 
 builtin_to_adoc () {
-       echo "$GIT_BUILD_DIR/Documentation/git-$1.adoc"
+       echo "$GIT_SOURCE_DIR/Documentation/git-$1.adoc"
 }
 
 adoc_to_synopsis () {