From: Elia Pinto Date: Fri, 6 Jun 2014 14:55:45 +0000 (-0700) Subject: contrib/examples/git-clone.sh: avoid "test -a/-o " X-Git-Tag: v2.1.0-rc0~79^2~18 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/cb9d69ad638fe34d214cf9cb2850e38be6e6d639 contrib/examples/git-clone.sh: avoid "test -a/-o " The construct is error-prone; "test" being built-in in most modern shells, the reason to avoid "test && test " spawning one extra process by using a single "test -a " no longer exists. Signed-off-by: Elia Pinto Reviewed-by: Matthieu Moy Signed-off-by: Junio C Hamano --- diff --git a/contrib/examples/git-clone.sh b/contrib/examples/git-clone.sh index b4c9376a2c..08cf246bbb 100755 --- a/contrib/examples/git-clone.sh +++ b/contrib/examples/git-clone.sh @@ -516,7 +516,7 @@ then case "$no_checkout" in '') - test "z$quiet" = z -a "z$no_progress" = z && v=-v || v= + test "z$quiet" = z && test "z$no_progress" = z && v=-v || v= git read-tree -m -u $v HEAD HEAD esac fi