#!/bin/bash
# NB This requires use of t-chain-test-somehow.
set -ex
oldpwd=$(pwd)
cd "$DGIT_TEST_TROOT/.."
# tests/lib redirects stderr/stdout (both to stdout, as it happens).
# This makes sense for the test toplevel, but here it's a nuisance.
exec 21>&1 1>&2
. tests/lib
exec 1>&21
cd "$oldpwd"
trap '' EXIT # preserves our exit status
t-dgit "$@"
