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 |
Fatih Degirmenci | 6634be5 | 2018-12-11 11:30:08 -0800 | [diff] [blame] | 7 | echo "Checking out $BRANCH" |
| 8 | git checkout $BRANCH -q |
Fatih Degirmenci | a2beeb2 | 2018-12-10 10:57:50 -0800 | [diff] [blame] | 9 | git pull -q |
| 10 | echo "Commit is" |
| 11 | echo "-------------------------------------------" |
| 12 | git show -s |
| 13 | echo "-------------------------------------------" |
Fatih Degirmenci | 6634be5 | 2018-12-11 11:30:08 -0800 | [diff] [blame] | 14 | echo "Adding new remote $NORDIX_REMOTE for sync" |
Fatih Degirmenci | a2beeb2 | 2018-12-10 10:57:50 -0800 | [diff] [blame] | 15 | git remote add nordix $NORDIX_REMOTE |
| 16 | echo "-------------------------------------------" |
| 17 | git remote -v |
| 18 | echo "-------------------------------------------" |
Fatih Degirmenci | 6634be5 | 2018-12-11 11:30:08 -0800 | [diff] [blame] | 19 | echo "Pushing changes to Nordix branch $BRANCH" |
Fatih Degirmenci | a2beeb2 | 2018-12-10 10:57:50 -0800 | [diff] [blame] | 20 | git push nordix $BRANCH |