From 7ffbaefb036b95a1175c7404eb630c2ec6134648 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Tue, 9 Apr 2013 12:03:43 +1200 Subject: [PATCH] Set up demo git user for tests --- test/support/test_helper.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/support/test_helper.sh b/test/support/test_helper.sh index bf371d0..9838938 100644 --- a/test/support/test_helper.sh +++ b/test/support/test_helper.sh @@ -3,6 +3,13 @@ orig_cwd="$PWD" # Load SCM Breeze helpers source "$scmbDir/lib/git/helpers.sh" +if [ -z "$(git config --global user.email)" ]; then + git config --global user.email "testuser@example.com" +fi +if [ -z "$(git config --global user.name)" ]; then + git config --global user.name "Test User" +fi + # # Test helpers #-----------------------------------------------------------------------------