git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-submodule: Avoid printing a spurious message.

From
AJAlexandre Julliard <julliard@winehq.org>
Date
Nov 11, 2008, 21:09 UTC
Message-ID
<87myg67ywz.fsf@wine.dyndns.org>

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>
---
 git-submodule.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-submodule.sh b/git-submodule.sh
index b63e5c3..220d94e 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -323,7 +323,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
-- 
1.6.0.4.637.ga2ff4

-- 
Alexandre Julliard
julliard@winehq.org
Next: Johannes Schindelin
Message 1 of 3 in “git-submodule: Avoid printing a spurious message.”
  1. git-submodule: Avoid printing a spurious message.Alexandre Julliard, Nov 11, 2008
  2. Johannes SchindelinNov 12, 2008
  3. Junio C HamanoNov 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.