From 531bb205192661c3c8c17ed154222adf11e8827f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 16 Nov 2025 01:11:09 -0500 Subject: [PATCH] tests: respect the globally specified default branch when running tests --- tests/test_deploy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_deploy b/tests/test_deploy index 01ecbda18..651e16098 100755 --- a/tests/test_deploy +++ b/tests/test_deploy @@ -45,10 +45,11 @@ git add . [[ -x pre-commit ]] && ./pre-commit "$REMOTE" "$REPO" git commit -m 'initial commit' +current_branch="$(git rev-parse --abbrev-ref HEAD)" if [[ "$SHOULD_FAIL" == true ]]; then - git push target "master:$BRANCH" && succeeded git-push + git push target "$current_branch:$BRANCH" && succeeded git-push else - git push target "master:$BRANCH" || failed git-push + git push target "$current_branch:$BRANCH" || failed git-push fi if [[ -x post-deploy ]]; then ./post-deploy "$REMOTE" "$REPO" || failed post-deploy