From: Atharva Raykar Date: Tue, 07 Sep 2021 11:59:26 GMT Subject: [PATCH 07/13] submodule: remove fetch_in_submodule shell function Message-ID: <20210907115932.36068-8-raykar.ath@gmail.com> In-Reply-To: <20210907115932.36068-1-raykar.ath@gmail.com> This function has no more use in 'git-submodule.sh' after bd82d7d467 (submodule: move core cmd_update() logic to C, 2021-07-20), where we moved all of its uses to C, which has its own version for the same. Mentored-by: Christian Couder Mentored-by: Shourya Shukla Signed-off-by: Atharva Raykar --- git-submodule.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/git-submodule.sh b/git-submodule.sh index 4e21d9715c..5197de4551 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -369,20 +369,6 @@ cmd_deinit() git ${wt_prefix:+-C "$wt_prefix"} submodule--helper deinit ${GIT_QUIET:+--quiet} ${force:+--force} ${deinit_all:+--all} -- "$@" } -# usage: fetch_in_submodule [] [] -# Because arguments are positional, use an empty string to omit -# but include . -fetch_in_submodule () ( - sanitize_submodule_env && - cd "$1" && - if test $# -eq 3 - then - echo "$3" | git fetch ${GIT_QUIET:+--quiet} --stdin ${2:+"$2"} - else - git fetch ${GIT_QUIET:+--quiet} ${2:+"$2"} - fi -) - # # Update each submodule path to correct revision, using clone and checkout as needed # -- 2.32.0