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 bcd50b0..7497dce 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.
     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 056a1bc..7ed2761 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
        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 () {
 }
 
 t-filter-out-git-hyphen-dir () {