File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ mergeRequest()
158158push ()
159159{
160160 echo " "
161- read -p " *** You are pushing to the $TARGET_BRANCH branch. Continue?" YN
161+ read -p " *** You are pushing to the $SOURCE_BRANCH branch. Continue?" YN
162162
163163 case $YN in
164164 [Yy]* ) echo " \n*** Pushing $SOURCE_BRANCH ..." ; git push -u origin $SOURCE_BRANCH ;;
Original file line number Diff line number Diff line change @@ -99,11 +99,15 @@ pullRequest()
9999
100100push ()
101101{
102+ NEW_BRANCH=" release_${TARGET_BRANCH} .$$ "
103+
104+ git branch -m $NEW_BRANCH
105+
102106 echo " "
103- read -p " *** You are pushing to the $TARGET_BRANCH branch. Continue?" YN
107+ read -p " *** You are pushing to the $NEW_BRANCH branch. Continue?" YN
104108
105109 case $YN in
106- [Yy]* ) echo " \n*** Pushing $TARGET_BRANCH ..." ; git push -u origin $TARGET_BRANCH ;;
110+ [Yy]* ) echo " \n*** Pushing $NEW_BRANCH ..." ; git push -u origin $NEW_BRANCH ;;
107111 [Nn]* ) exit 0;;
108112 * ) echo " Please answer yes or no." ; push;;
109113 esac
You can’t perform that action at this time.
0 commit comments