From: Alexandre Julliard Date: Tue, 11 Nov 2008 21:09:16 +0000 (+0100) Subject: git-submodule: Avoid printing a spurious message. X-Git-Tag: v1.6.1-rc1~7^2~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=989206f535dcd0f43356ad38e1d54cb833d96fc2;p=git.git git-submodule: Avoid printing a spurious message. Fix 'git submodule update' to avoid printing a spurious "Maybe you want to use 'update --init'?" once for every uninitialized submodule it encounters. Signed-off-by: Alexandre Julliard Signed-off-by: Junio C Hamano --- diff --git a/git-submodule.sh b/git-submodule.sh index 5888735e4..97e4d9a1e 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -294,7 +294,7 @@ cmd_update() # Only mention uninitialized submodules when its # path have been specified test "$#" != "0" && - say "Submodule path '$path' not initialized" + say "Submodule path '$path' not initialized" && say "Maybe you want to use 'update --init'?" continue fi