ocarina/scripts/new_release
Bryan Schumaker 9c20388b85 new_release argument checking
new_release should check the number of arguments before attempting to do
anything.
2010-11-05 18:45:20 -04:00

15 lines
235 B
Bash
Executable File

#!/bin/bash
if [ $# != 1]
then
echo "Usage: scripts/new_release BRANCH_NAME"
exit 1
fi
NAME=$1
echo "Creating new release: $NAME"
git push origin origin:refs/heads/$NAME
git fetch origin
git checkout --track -b $NAME origin/$NAME