Develop #140

Open
wants to merge 4 commits into
from
View
@@ -347,6 +347,10 @@ helper_finish_cleanup() {
if noflag keep; then
git branch -d "$BRANCH"
+ CHECK_REMOTE=$(git branch -r | grep "$ORIGIN"/"$BRANCH" | wc -l)
+ if [ $CHECK_REMOTE = 1 ]; then
+ git push "$ORIGIN" :"$BRANCH"
+ fi
fi
echo
View
@@ -263,6 +263,10 @@ cmd_finish() {
# delete branch
if noflag keep; then
git branch -d "$BRANCH"
+ CHECK_REMOTE=$(git branch -r | grep "$ORIGIN"/"$BRANCH" | wc -l)
+ if [ $CHECK_REMOTE = 1 ]; then
+ git push "$ORIGIN" :"$BRANCH"
+ fi
fi
if flag push; then
View
@@ -264,6 +264,10 @@ cmd_finish() {
git checkout "$MASTER_BRANCH"
fi
git branch -d "$BRANCH"
+ CHECK_REMOTE=$(git branch -r | grep "$ORIGIN"/"$BRANCH" | wc -l)
+ if [ $CHECK_REMOTE = 1 ]; then
+ git push "$ORIGIN" :"$BRANCH"
+ fi
fi
if flag push; then