ocarina/scripts/new_release
Bryan Schumaker 06153b6c13 new_release argument checking
new_release should check the number of arguments before attempting to do
anything.
2010-12-03 08:26:06 -05: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