Code

test: Introduce $GIT_BUILD_DIR
authorThomas Rast <trast@student.ethz.ch>
Sun, 25 Jul 2010 14:55:46 +0000 (16:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 31 Aug 2010 19:11:06 +0000 (12:11 -0700)
Introduce a new variable $GIT_BUILD_DIR which can be used to locate
data that resides under the build directory, and use that instead.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh

index 46179988a393761afed8013c67533658bdda657b..9746ca408940bf54edc8ad99b4288e91c8535cad 100644 (file)
@@ -793,6 +793,7 @@ else # normal case, use ../bin-wrappers only unless $with_dashes:
                PATH="$TEST_DIRECTORY/..:$PATH"
        fi
 fi
+GIT_BUILD_DIR=$(pwd)/..
 GIT_TEMPLATE_DIR=$(pwd)/../templates/blt
 unset GIT_CONFIG
 GIT_CONFIG_NOSYSTEM=1