Skip to content

Commit

Permalink
git-bisect: fix wrong usage of read(1)
Browse files Browse the repository at this point in the history
Signed-off-by:  Francis Moreau <francis.moro@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Francis Moreau authored and Junio C Hamano committed Aug 11, 2008
1 parent e534735 commit e5d3afd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-bisect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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...
;;
Expand Down

0 comments on commit e5d3afd

Please sign in to comment.