summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorAlexandre Julliard <julliard@winehq.org>2008-11-11 22:09:16 +0100
committerJunio C Hamano <gitster@pobox.com>2008-11-11 13:48:04 -0800
commit989206f535dcd0f43356ad38e1d54cb833d96fc2 (patch)
tree50c519bd87cb0f7dead301bec496126df190ea71 /git-submodule.sh
parent0a2bb55848c031f431d8507d0083247ece126b8f (diff)
downloadgit-989206f535dcd0f43356ad38e1d54cb833d96fc2.tar.gz
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 <julliard@winehq.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 5888735e4f..97e4d9a1ef 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