]> git.scottworley.com Git - pinch/commitdiff
Set git user in test harness
authorScott Worley <scottworley@scottworley.com>
Thu, 11 Jun 2020 20:30:20 +0000 (13:30 -0700)
committerScott Worley <scottworley@scottworley.com>
Thu, 11 Jun 2020 20:30:20 +0000 (13:30 -0700)
This allows git to run in a minimal test environment without git
aborting with "*** Please tell me who you are."

tests/lib/test-setup.sh

index 97fec64656c1ab7eb5f828aaaefe0ea79b60e02c..35a4e7334dbbc52f1a71284e342ee53af061f1cf 100644 (file)
@@ -1,5 +1,10 @@
 set -e
 
+export GIT_AUTHOR_NAME=automation
+export GIT_COMMITTER_NAME=automation
+export GIT_AUTHOR_EMAIL=auto@mati.on
+export GIT_COMMITTER_EMAIL=auto@mati.on
+
 cache_dir=$(mktemp -d)
 export XDG_CACHE_HOME=$cache_dir