Set TEST_DIRECTORY
authorDavid A. Greene <greened@obbligato.org>
Tue, 20 Mar 2012 23:11:49 +0000 (18:11 -0500)
committerDavid A. Greene <greened@obbligato.org>
Tue, 10 Apr 2012 01:23:10 +0000 (20:23 -0500)
Set TEST_DIRECTORY to the main git test area.  This allows the
git-subtree out-of-tree tests to run correctly.

Signed-off-by: David A. Greene <greened@obbligato.org>
contrib/subtree/t/t7900-subtree.sh

index 585f8d5751eb1fba2c1ca4c7c5cf7189570d2f2e..bc2eeb094485b4e0865c910399488e48d0570722 100755 (executable)
@@ -8,7 +8,9 @@ This test verifies the basic operation of the merge, pull, add
 and split subcommands of git subtree.
 '
 
-. ./test-lib.sh
+export TEST_DIRECTORY=$(pwd)/../../../t
+
+. ../../../t/test-lib.sh
 
 create()
 {
@@ -30,7 +32,7 @@ check_equal()
 }
 
 fixnl()
-{      
+{
        t=""
        while read x; do
                t="$t$x "