blob: b2f77378b504355daa6cb975ba82b3e7e87c1b6d [file] [log] [blame]
Fatih Degirmencia2beeb22018-12-10 10:57:50 -08001#!/bin/bash
2set -o errexit
3set -o nounset
4set -o pipefail
5
6cd $WORKSPACE
Fatih Degirmenci6634be52018-12-11 11:30:08 -08007echo "Checking out $BRANCH"
8git checkout $BRANCH -q
Fatih Degirmencia2beeb22018-12-10 10:57:50 -08009git pull -q
10echo "Commit is"
11echo "-------------------------------------------"
12git show -s
13echo "-------------------------------------------"
Fatih Degirmenci6634be52018-12-11 11:30:08 -080014echo "Adding new remote $NORDIX_REMOTE for sync"
Fatih Degirmencia2beeb22018-12-10 10:57:50 -080015git remote add nordix $NORDIX_REMOTE
16echo "-------------------------------------------"
17git remote -v
18echo "-------------------------------------------"
Fatih Degirmenci6634be52018-12-11 11:30:08 -080019echo "Pushing changes to Nordix branch $BRANCH"
Fatih Degirmencia2beeb22018-12-10 10:57:50 -080020git push nordix $BRANCH