Skip to contentSkip to conversation

git-submodule: Avoid printing a spurious message.

PATCH In review Alexandre Julliard 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 git-submodule.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-submodule.sh +1 -1
index b63e5c3..220d94e 100755
@@ -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
Signature · 5 lines
1.6.0.4.637.ga2ff4

-- 
Alexandre Julliard
[email protected]
#2 lore raw
In reply to Alexandre Julliard

Hi,

Quoted 14 lines · Alexandre Julliard

Fix 'git submodule update' to avoid printing a spurious "Maybe you want to use 'update --init'?" once for every uninitialized submodule it encounters.

---
 git-submodule.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-submodule.sh +0 -0
index b63e5c3..220d94e 100755

git-submodule.sh cmd_update() · line 329

Quoted 8 lines
git-submodule.sh +1 -1
@@ -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

Ooops, thanks (& ACK).

Ciao,
Dscho