From: Ian Jackson Date: Thu, 27 Oct 2016 19:22:10 +0000 (+0100) Subject: Test suite: Explicitly configure user.name and user.email X-Git-Tag: archive/debian/2.9~39 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=2c3427f71978357151e84611d967c1650aa814dc Test suite: Explicitly configure user.name and user.email So that tests work when environment doesn't have defaults. Closes:#842279 (I hope). Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index bcd50b04..7497dce1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,9 @@ dgit (2.9~) unstable; urgency=low so user never needs [--ch:]-sa or [--ch:]-sd. Closes:#829116. * Properly look for .origs etc. in .., fetching them less often. * New import-dsc feature. + * Test suite: Explicitly configure user.name and user.email, so + that tests work when environment doesn't have defaults. + Closes:#842279 (I hope). -- diff --git a/tests/lib-core b/tests/lib-core index 056a1bc1..7ed27619 100644 --- a/tests/lib-core +++ b/tests/lib-core @@ -20,6 +20,8 @@ t-set-using-tmp () { export DGIT_TEST_DUMMY_DIR=$tmp export DGIT_TEST_TMP=$tmp 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 () {