diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-20 21:28:27 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-20 21:28:27 +0200 |
commit | a766c09e84eca3c990ec42c9b8a2420e4fc05420 (patch) | |
tree | a0a8cb93673e95905a65fa6f6c4667effa4beef9 /helpers/update-branches.sh | |
parent | 0160c2a1e9122d396a307fcce6a60309381d302e (diff) | |
parent | 7aeea616b4b0272c130ac45c65e640b3482add24 (diff) | |
download | egawk-a766c09e84eca3c990ec42c9b8a2420e4fc05420.tar.gz egawk-a766c09e84eca3c990ec42c9b8a2420e4fc05420.tar.bz2 egawk-a766c09e84eca3c990ec42c9b8a2420e4fc05420.zip |
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'helpers/update-branches.sh')
-rwxr-xr-x | helpers/update-branches.sh | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/helpers/update-branches.sh b/helpers/update-branches.sh index 659da8b8..b08e1f16 100755 --- a/helpers/update-branches.sh +++ b/helpers/update-branches.sh @@ -6,14 +6,32 @@ then exit 1 fi -git checkout master || exit +doit () { + echo " + Running: $@" + "$@" || { + echo "Oops: command [$@] failed with status $?" + return 1 + } +} + +doit git checkout master || exit features=$(git branch -a | grep /origin/feature/ | sed 's;.*/origin/;;') others="porting" for i in $others $features do - (git checkout $i && git pull && git merge master && git push) || break + echo " + Updating branch $i" + (doit git checkout $i && doit git pull && doit git merge master && doit git push) || { + echo " +Error encountered updating branch $i. +Please resolve the conflict and push it manually in a separate window. +Please hit enter when you are done so we may continue to merge into +the other branches." + read x + } done -git checkout master || exit +doit git checkout master |