summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Julliard <julliard@winehq.org>2008-11-11 21:09:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-11-11 21:48:04 (GMT)
commit989206f535dcd0f43356ad38e1d54cb833d96fc2 (patch)
tree50c519bd87cb0f7dead301bec496126df190ea71
parent0a2bb55848c031f431d8507d0083247ece126b8f (diff)
downloadgit-989206f535dcd0f43356ad38e1d54cb833d96fc2.zip
git-989206f535dcd0f43356ad38e1d54cb833d96fc2.tar.gz
git-989206f535dcd0f43356ad38e1d54cb833d96fc2.tar.bz2
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>
-rwxr-xr-xgit-submodule.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 5888735..97e4d9a 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