add default branches so it doesnt go haywire and self-destruct (oops)

This commit is contained in:
Rich Harris
2019-02-08 16:26:29 -05:00
parent 1c2c29e181
commit 9beeb742c6

View File

@@ -1,9 +1,11 @@
#!/bin/bash #!/bin/bash
cd "$(dirname $0)"/.. cd "$(dirname $0)"/..
DEFAULT=$1 DEFAULT=${1:-master}
ROLLUP=$2 ROLLUP=${2:-rollup}
WEBPACK=$3 WEBPACK=${3:-webpack}
echo "Creating $ROLLUP and $WEBPACK branches from $DEFAULT"
# make sure we're on master, and delete the $ROLLUP and $WEBPACK branches # make sure we're on master, and delete the $ROLLUP and $WEBPACK branches
git symbolic-ref HEAD "refs/heads/$DEFAULT" git symbolic-ref HEAD "refs/heads/$DEFAULT"