From e103d9b11b7c2e109e9be5c20243872e3d4feab4 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 29 Dec 2022 01:55:06 -0500 Subject: [PATCH] chore: suppress warnings about default branch --- tests/unit/nginx-vhosts_12.bats | 5 +++++ tests/unit/test_helper.bash | 1 + 2 files changed, 6 insertions(+) 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"