mirror of
https://github.com/git/git.git
synced 2024-11-07 09:43:00 +01:00
Merge branch 'jc/maint-mergetool-read-fix'
* jc/maint-mergetool-read-fix: mergetool: check return value from read
This commit is contained in:
commit
f50d0a7f40
1 changed files with 4 additions and 4 deletions
|
@ -100,7 +100,7 @@ resolve_deleted_merge () {
|
|||
else
|
||||
printf "Use (c)reated or (d)eleted file, or (a)bort? "
|
||||
fi
|
||||
read ans
|
||||
read ans || return 1
|
||||
case "$ans" in
|
||||
[mMcC]*)
|
||||
git add -- "$MERGED"
|
||||
|
@ -122,7 +122,7 @@ resolve_deleted_merge () {
|
|||
resolve_submodule_merge () {
|
||||
while true; do
|
||||
printf "Use (l)ocal or (r)emote, or (a)bort? "
|
||||
read ans
|
||||
read ans || return 1
|
||||
case "$ans" in
|
||||
[lL]*)
|
||||
if ! local_present; then
|
||||
|
@ -249,7 +249,7 @@ merge_file () {
|
|||
describe_file "$remote_mode" "remote" "$REMOTE"
|
||||
if "$prompt" = true; then
|
||||
printf "Hit return to start merge resolution tool (%s): " "$merge_tool"
|
||||
read ans
|
||||
read ans || return 1
|
||||
fi
|
||||
|
||||
if base_present; then
|
||||
|
@ -320,7 +320,7 @@ done
|
|||
prompt_after_failed_merge() {
|
||||
while true; do
|
||||
printf "Continue merging other unresolved paths (y/n) ? "
|
||||
read ans
|
||||
read ans || return 1
|
||||
case "$ans" in
|
||||
|
||||
[yY]*)
|
||||
|
|
Loading…
Reference in a new issue