9 if [ "x$DGIT_TEST_INTREE" = x ]; then return; fi
10 : ${DGIT_TEST:=$DGIT_TEST_INTREE/dgit}
11 : ${DGIT_BADCOMMIT_FIXUP:=$DGIT_TEST_INTREE/dgit-badcommit-fixup}
12 : ${DGIT_REPOS_SERVER_TEST:=$DGIT_TEST_INTREE/infra/dgit-repos-server}
13 : ${DGIT_SSH_DISPATCH_TEST:=$DGIT_TEST_INTREE/infra/dgit-ssh-dispatch}
14 : ${DGIT_INFRA_PFX:=$DGIT_TEST_INTREE${DGIT_TEST_INTREE:+/infra/}}
15 export DGIT_TEST DGIT_BADCOMMIT_FIXUP
16 export DGIT_REPOS_SERVER_TEST DGIT_SSH_DISPATCH_TEST
17 export PERLLIB="$DGIT_TEST_INTREE${PERLLIB:+:}${PERLLIB}"
22 export DGIT_TEST_DUMMY_DIR=$tmp
23 export DGIT_TEST_TMP=$tmp
24 export GNUPGHOME=$tmp/nonexistent
25 git config --global user.email 'dgit-test@debian.example.net'
26 git config --global user.name 'dgit test git user'
27 git config --global protocol.ext.allow always
30 t-filter-out-git-hyphen-dir () {
31 local pathent; pathent=$(type -p git-rev-parse ||:)
32 case "$pathent" in '') return ;; esac
35 path="${path//:$pathent:/}"