|
|
|
@ -1,5 +1,4 @@ |
|
|
|
#!/bin/env bash
|
|
|
|
DIRNAME=`dirname $0`
|
|
|
|
|
|
|
|
git_current_branch() {
|
|
|
|
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
|
|
|
|
@ -26,7 +25,7 @@ delete_branch() { |
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
$DIRNAME/03_push_branch.sh |
|
|
|
git_03_push_branch.sh |
|
|
|
|
|
|
|
if [ ! "$CUR_BRANCH" = "develop" ]
|
|
|
|
then
|
|
|
|
@ -35,7 +34,7 @@ then |
|
|
|
echo # (optional) move to a new line
|
|
|
|
if [[ $REPLY =~ ^[YyOo]$ ]]
|
|
|
|
then
|
|
|
|
$DIRNAME/00_checkout_branch.sh develop |
|
|
|
git_00_checkout_branch.sh develop |
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|