git-bisect.sh: avoid "test <cond> -a/-o <cond>"
The construct is error-prone; "test" being built-in in most modern shells, the reason to avoid "test <cond> && test <cond>" spawning one extra process by using a single "test <cond> -a <cond>" no longer exists. Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elia Pinto committed
Jun 6, 2014 at 07:55 UTC
c82af12a1bde56fd7c3b984688ef7fe9f4c44b6e
1 file changed
+1
-1
git-bisect.sh
+1
-1
@@ -408,7 +408,7 @@ bisect_replay () {
408
bisect_reset
409
while read git bisect command rev
410
do
411
- test "$git $bisect" = "git bisect" -o "$git" = "git-bisect" || continue
411
+ test "$git $bisect" = "git bisect" || test "$git" = "git-bisect" || continue
412
if test "$git" = "git-bisect"
413
then
414
rev="$command"