contrib/examples/git-clone.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
cb9d69ad638fe34d214cf9cb2850e38be6e6d639
1 file changed
+1
-1
contrib/examples/git-clone.sh
+1
-1
@@ -516,7 +516,7 @@ then
516
517
case "$no_checkout" in
518
'')
519
- test "z$quiet" = z -a "z$no_progress" = z && v=-v || v=
519
+ test "z$quiet" = z && test "z$no_progress" = z && v=-v || v=
520
git read-tree -m -u $v HEAD HEAD
521
esac
522
fi