#!/bin/bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
cd $WORKSPACE | |
git checkout $UPSTREAM_BRANCH -q | |
git pull -q | |
echo "Commit is" | |
echo "-------------------------------------------" | |
git show -s | |
echo "-------------------------------------------" | |
echo "Adding new remote for sync" | |
git remote add nordix $NORDIX_REMOTE | |
echo "-------------------------------------------" | |
git remote -v | |
echo "-------------------------------------------" | |
echo "Pushing changes to Nordix BRANCH" | |
git push nordix $BRANCH |