diff --git a/tests/unit/nginx-vhosts_12.bats b/tests/unit/nginx-vhosts_12.bats index d9d1dcda3..1fd0fd2d3 100644 --- a/tests/unit/nginx-vhosts_12.bats +++ b/tests/unit/nginx-vhosts_12.bats @@ -27,6 +27,11 @@ teardown() { echo "status: $status" assert_success + run /bin/bash -c "git config --global init.defaultBranch master" + echo "output: $output" + echo "status: $status" + assert_success + run /bin/bash -c "git init" echo "output: $output" echo "status: $status" diff --git a/tests/unit/test_helper.bash b/tests/unit/test_helper.bash index 98847fea1..2c1f34a8b 100644 --- a/tests/unit/test_helper.bash +++ b/tests/unit/test_helper.bash @@ -326,6 +326,7 @@ deploy_app() { pushd "$TMP" &>/dev/null || exit 1 [[ -z "$CUSTOM_TMP" ]] && trap 'popd &>/dev/null || true; rm -rf "$TMP"' RETURN INT TERM + git config --global init.defaultBranch master git init git config user.email "robot@example.com" git config user.name "Test Robot"