Skip to content

Commit 989206f

Browse files
julliardgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0a2bb55 commit 989206f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-submodule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ cmd_update()
294294
# Only mention uninitialized submodules when its
295295
# path have been specified
296296
test "$#" != "0" &&
297-
say "Submodule path '$path' not initialized"
297+
say "Submodule path '$path' not initialized" &&
298298
say "Maybe you want to use 'update --init'?"
299299
continue
300300
fi

0 commit comments

Comments
 (0)