# Fetch patch if gerrit project matches the jjb-deploy project
if [ "${GERRIT_PROJECT}" == "${PROJECT}" ]; then
echo "-----> Fetching ${PROJECT} patch"
git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD
# Fetch patch if gerrit project matches the jjb-deploy project
if [ "${GERRIT_PROJECT}" == "${PROJECT}" ]; then
echo "-----> Fetching ${PROJECT} patch"
git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD