From: W. Trevor King Date: Sun, 2 Dec 2012 13:11:47 +0000 (-0500) Subject: submodule update: make --init a no-op X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=39b97c66d34b560de9ffee2f9d6492d1b377a4f9;p=git.git submodule update: make --init a no-op There's nothing important that happens during the init phase any more. Keep the option around as a no-op for backwards compatibility. Signed-off-by: W. Trevor King --- diff --git a/git-submodule.sh b/git-submodule.sh index 7a467c49b..d48b4ea35 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -8,7 +8,7 @@ dashless=$(basename "$0" | sed -e 's/-/ /') USAGE="[--quiet] add [-b branch] [-f|--force] [--reference ] [--] [] or: $dashless [--quiet] status [--cached] [--recursive] [--] [...] or: $dashless [--quiet] init [--] [...] - or: $dashless [--quiet] update [--init] [-N|--no-fetch] [-f|--force] [--rebase] [--reference ] [--merge] [--recursive] [--] [...] + or: $dashless [--quiet] update [-N|--no-fetch] [-f|--force] [--rebase] [--reference ] [--merge] [--recursive] [--] [...] or: $dashless [--quiet] summary [--cached|--files] [--summary-limit ] [commit] [--] [...] or: $dashless [--quiet] foreach [--recursive] or: $dashless [--quiet] sync [--] [...]" @@ -24,7 +24,6 @@ force= reference= cached= recursive= -init= files= nofetch= update= @@ -650,7 +649,6 @@ cmd_update() GIT_QUIET=1 ;; -i|--init) - init=1 ;; -N|--no-fetch) nofetch=1 @@ -694,11 +692,6 @@ cmd_update() shift done - if test -n "$init" - then - cmd_init "--" "$@" || return - fi - cloned_modules= module_list "$@" | { err=