From 678486426c32fec02525bdb357178db752b6108d Mon Sep 17 00:00:00 2001 From: Test Suite Date: Sun, 13 Sep 2020 13:42:29 +0200 Subject: [PATCH] Set git user in GitHub Context --- tests/commit.bats | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/commit.bats b/tests/commit.bats index f6b9ef5..92e0a62 100644 --- a/tests/commit.bats +++ b/tests/commit.bats @@ -11,8 +11,11 @@ setup() { touch "${test_repository}"/{a,b,c}.txt cd "${test_repository}" - git config user.email "test@github.com" - git config user.name "Test Suite" + if [[ -n $GITHUB ]]; then + git config --global user.email "test@github.com" + git config --global user.name "Test Suite" + fi + git init --quiet git add . > /dev/null 2>&1