Delete any existing branch

This commit is contained in:
Bob Mottram 2016-05-12 11:44:03 +01:00
parent 8db7c19776
commit 321b68e505
1 changed files with 8930 additions and 8923 deletions

View File

@ -638,7 +638,14 @@ function git_pull {
git pull git pull
if [ $2 ]; then if [ $2 ]; then
# delete any existing branch
git branch -D $2
# check out the new branch
git checkout $2 -b $2 git checkout $2 -b $2
if [ ! "$?" = "0" ]; then
echo $"Unable to checkout $1 $2"
exit 72357
fi
fi fi
} }