]> git.ipfire.org Git - thirdparty/git.git/commit - git-submodule.sh
git-submodule.sh: avoid "test <cond> -a/-o <cond>"
authorElia Pinto <gitter.spiros@gmail.com>
Tue, 10 Jun 2014 12:28:33 +0000 (05:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Jun 2014 20:30:03 +0000 (13:30 -0700)
commit496eeeb19b9c4adf743bf9acdc25d814e9c58a4e
treee423a9370a7ee34b7aad57dc2486c8cef1cadb00
parent0cfe6fd252ee0898d832823bdab66d3cc986f3df
git-submodule.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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh