diff --git a/cascade-release.sh b/cascade-release.sh new file mode 100755 index 00000000..065e4e32 --- /dev/null +++ b/cascade-release.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e + +if [ x"$(git branch --show)" != x"cascade" ];then + echo "this cannot be run on any branches other than cascade" + exit 1 +fi + +git fetch upstream +git checkout -b cascade-"$1" +git rebase "$1" || (git checkout cascade && git branch -D cascade-"$1";exit 1) +git push -u origin cascade-"$1" +git checkout cascade