fix #180 and #232 feature|bug|refactor checkout

If branch creation in feature|bug|refactor returns a non-zero value
then simply try to switch to branch
This commit is contained in:
Balazs Nadasdi 2014-10-07 10:57:00 +02:00
parent 53470fa7ad
commit b9478d64b7
3 changed files with 3 additions and 0 deletions

View file

@ -11,4 +11,5 @@ else
fi
branch=bug/$1
git checkout -b $branch &> /dev/null
test -n $? && git checkout $branch &> /dev/null
fi

View file

@ -11,4 +11,5 @@ else
fi
branch=feature/$1
git checkout -b $branch &> /dev/null
test -n $? && git checkout $branch &> /dev/null
fi

View file

@ -12,4 +12,5 @@ else
fi
branch=refactor/$1
git checkout -b $branch &> /dev/null
test -n $? && git checkout $branch &> /dev/null
fi