t1000-read-tree-m-3way.sh: use the $( ... ) construct for command substitution
[gitweb.git] / t / test-lib.sh
index 3c7cb1d774cadaa4d625e2d53ba122db4108cb0e..87f327ff8bcd2c2a29fcbabe74c226232b54f728 100644 (file)
@@ -108,6 +108,12 @@ export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME
 export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME
 export EDITOR
 
+if test -n "${TEST_GIT_INDEX_VERSION:+isset}"
+then
+       GIT_INDEX_VERSION="$TEST_GIT_INDEX_VERSION"
+       export GIT_INDEX_VERSION
+fi
+
 # Add libc MALLOC and MALLOC_PERTURB test
 # only if we are not executing the test with valgrind
 if expr " $GIT_TEST_OPTS " : ".* --valgrind " >/dev/null ||