set current branch for test

This commit is contained in:
spencergibb
2020-05-08 13:40:16 -04:00
parent 2821e3222c
commit fe89ee7de0

View File

@@ -85,6 +85,7 @@ function retrieve_current_branch() {
# Code getting the name of the current branch. For master we want to publish as we did until now
# https://stackoverflow.com/questions/1593051/how-to-programmatically-determine-the-current-checked-out-git-branch
# If there is a branch already passed will reuse it - otherwise will try to find it
echo "BRANCH=${BRANCH}"
CURRENT_BRANCH=${BRANCH}
if [[ -z "${CURRENT_BRANCH}" ]] ; then
CURRENT_BRANCH=$("${GIT_BIN}" symbolic-ref -q HEAD)