Fatih Degirmenci | a2beeb2 | 2018-12-10 10:57:50 -0800 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | set -o errexit |
| 3 | set -o nounset |
| 4 | set -o pipefail |
| 5 | |
| 6 | cd $WORKSPACE |
| 7 | git checkout $UPSTREAM_BRANCH -q |
| 8 | git pull -q |
| 9 | echo "Commit is" |
| 10 | echo "-------------------------------------------" |
| 11 | git show -s |
| 12 | echo "-------------------------------------------" |
| 13 | echo "Adding new remote for sync" |
| 14 | git remote add nordix $NORDIX_REMOTE |
| 15 | echo "-------------------------------------------" |
| 16 | git remote -v |
| 17 | echo "-------------------------------------------" |
| 18 | echo "Pushing changes to Nordix BRANCH" |
| 19 | git push nordix $BRANCH |