chiark / gitweb /
Test suite: Explicitly configure user.name and user.email
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 27 Oct 2016 19:22:10 +0000 (20:22 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 19:50:48 +0000 (19:50 +0000)
So that tests work when environment doesn't have
defaults.

Closes:#842279 (I hope).

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
tests/lib-core

index bcd50b04761c86093a2c23fea08cce4284966b19..7497dce1c05d9f5997822478d40714a8b69de808 100644 (file)
@@ -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).
 
  --
 
index 056a1bc188c49f568df6046af46f94d2907c7f73..7ed27619ac3466b9a2900519412a53006cb709ad 100644 (file)
@@ -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 () {