diff --git a/t/test-lib.sh b/t/test-lib.sh
index 9cfabe447b5675f6725b4b71244814d38e76998b..a65dfc7ea93b3ec95e6ab7cd5b758029fe599d22 100644 (file)
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
fi
exec 5>&1
+exec 6<&0
if test "$verbose" = "t"
then
exec 4>&2 3>&1
git config "$@"
}
+test_config_global () {
+ test_when_finished "test_unconfig --global '$1'" &&
+ git config --global "$@"
+}
+
# Use test_set_prereq to tell that a particular prerequisite is available.
# The prerequisite can later be checked for in two ways:
#
test_eval_ () {
# This is a separate function because some tests use
# "return" to end a test_expect_success block early.
- eval >&3 2>&4 "$*"
+ eval </dev/null >&3 2>&4 "$*"
}
test_run_ () {