chiark / gitweb /
dgit: aptget archive access method
[dgit.git] / tests / lib-core
index f3881ca561c008c407ca24755cdc9facce646039..7ed27619ac3466b9a2900519412a53006cb709ad 100644 (file)
@@ -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"
 }