Set up demo git user for tests

This commit is contained in:
Nathan Broadbent
2013-04-09 12:03:43 +12:00
parent a2a1ae63e0
commit 7ffbaefb03

View File

@@ -3,6 +3,13 @@ orig_cwd="$PWD"
# Load SCM Breeze helpers # Load SCM Breeze helpers
source "$scmbDir/lib/git/helpers.sh" 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 # Test helpers
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------