git-submodule: Avoid printing a spurious message.
authorAlexandre Julliard <julliard@winehq.org>
Tue, 11 Nov 2008 21:09:16 +0000 (22:09 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Nov 2008 21:48:04 +0000 (13:48 -0800)
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 <julliard@winehq.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
index 5888735e4f2dac852f43c31195f430a1a6d23446..97e4d9a1ef9478f54613144e74e9e12314230877 100755 (executable)
@@ -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