git-bisect: fix wrong usage of read(1)

Signed-off-by:  Francis Moreau <francis.moro@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Francis Moreau 2008-08-11 19:37:46 +02:00 committed by Junio C Hamano
parent e534735a4c
commit e5d3afd78b

View File

@ -220,7 +220,8 @@ bisect_next_check() {
if test -t 0
then
printf >&2 'Are you sure [Y/n]? '
case "$(read yesno)" in [Nn]*) exit 1 ;; esac
read yesno
case "$yesno" in [Nn]*) exit 1 ;; esac
fi
: bisect without good...
;;