mirror of
https://github.com/git/git
synced 2024-08-28 12:09:19 +00:00
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>
This commit is contained in:
parent
0a2bb55848
commit
989206f535
|
@ -294,7 +294,7 @@ cmd_update()
|
||||||
# Only mention uninitialized submodules when its
|
# Only mention uninitialized submodules when its
|
||||||
# path have been specified
|
# path have been specified
|
||||||
test "$#" != "0" &&
|
test "$#" != "0" &&
|
||||||
say "Submodule path '$path' not initialized"
|
say "Submodule path '$path' not initialized" &&
|
||||||
say "Maybe you want to use 'update --init'?"
|
say "Maybe you want to use 'update --init'?"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue