File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ resolve_deleted_merge () {
100100 else
101101 printf " Use (c)reated or (d)eleted file, or (a)bort? "
102102 fi
103- read ans
103+ read ans || return 1
104104 case " $ans " in
105105 [mMcC]* )
106106 git add -- " $MERGED "
@@ -122,7 +122,7 @@ resolve_deleted_merge () {
122122resolve_submodule_merge () {
123123 while true ; do
124124 printf " Use (l)ocal or (r)emote, or (a)bort? "
125- read ans
125+ read ans || return 1
126126 case " $ans " in
127127 [lL]* )
128128 if ! local_present; then
@@ -249,7 +249,7 @@ merge_file () {
249249 describe_file " $remote_mode " " remote" " $REMOTE "
250250 if " $prompt " = true ; then
251251 printf " Hit return to start merge resolution tool (%s): " " $merge_tool "
252- read ans
252+ read ans || return 1
253253 fi
254254
255255 if base_present; then
320320prompt_after_failed_merge () {
321321 while true ; do
322322 printf " Continue merging other unresolved paths (y/n) ? "
323- read ans
323+ read ans || return 1
324324 case " $ans " in
325325
326326 [yY]* )
You can’t perform that action at this time.
0 commit comments