HBASE-12944 Support patches to branches in precommit jenkins build (ADDENDUM to fix branch name parsing)

This commit is contained in:
Enis Soztutar 2015-01-29 18:13:05 -08:00
parent a5613efa7b
commit c61c17b6f8
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ checkoutBranch() {
echo "" echo ""
echo "" echo ""
if [[ $JENKINS == "true" ]] ; then if [[ $JENKINS == "true" ]] ; then
if [[ $BRANCH_NAME -ne "master" ]]; then if [[ "$BRANCH_NAME" != "master" ]]; then
echo "${GIT} checkout ${BRANCH_NAME}" echo "${GIT} checkout ${BRANCH_NAME}"
${GIT} checkout ${BRANCH_NAME} ${GIT} checkout ${BRANCH_NAME}
echo "${GIT} status" echo "${GIT} status"