X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Flib-core;h=7ed27619ac3466b9a2900519412a53006cb709ad;hp=f3881ca561c008c407ca24755cdc9facce646039;hb=ae38f5e4005f0ad0ea21ed163c5e51c181cc31f9;hpb=d228327cc4aec6fef736c5d44abb0edf025a57f0 diff --git a/tests/lib-core b/tests/lib-core index f3881ca5..7ed27619 100644 --- a/tests/lib-core +++ b/tests/lib-core @@ -19,5 +19,18 @@ t-set-using-tmp () { export HOME=$tmp export DGIT_TEST_DUMMY_DIR=$tmp export DGIT_TEST_TMP=$tmp - export GNUPGHOME=$tmp/gnupg + export GNUPGHOME=$tmp/nonexistent + git config --global user.email 'dgit-test@debian.example.net' + git config --global user.name 'dgit test git user' +} + +t-filter-out-git-hyphen-dir () { + local pathent=$(type -p git-rev-parse ||:) + case "$pathent" in '') return ;; esac + pathent=${pathent%/*} + local path=":$PATH:" + path="${path//:$pathent:/}" + path="${path#:}" + path="${path%:}" + PATH="$path" }