summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Moreau <francis.moro@gmail.com>2008-08-11 17:37:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-08-11 23:48:11 (GMT)
commite5d3afd78be54fc6e958c7ebad178593fd030441 (patch)
treeba4d33b8089f8360359bd6a92b1d3be4245fb75a
parente534735a4cd778ac8172f543869a20894c1022a6 (diff)
downloadgit-e5d3afd78be54fc6e958c7ebad178593fd030441.zip
git-e5d3afd78be54fc6e958c7ebad178593fd030441.tar.gz
git-e5d3afd78be54fc6e958c7ebad178593fd030441.tar.bz2
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>
-rwxr-xr-xgit-bisect.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-bisect.sh b/git-bisect.sh
index 991b2ef..6c6c3de 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -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...
;;