[PATCH 8/8] submodule update: remove never-used expansion
- From
Glen Choo via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Jun 10, 2022, 00:26 UTC
- Message-ID
- <242d3399dfb4fb533ca6cdca452af2717c316672.1654820781.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.1275.git.git.1654820781.gitgitgadget@gmail.com>
From: Glen Choo <chooglen@google.com>
The `prefix` variable is never set, so this conditional expansion is always '' (which does nothing).
Signed-off-by: Glen Choo <chooglen@google.com> --- git-submodule.sh | 1 - 1 file changed, 1 deletion(-)
diff --git a/git-submodule.sh b/git-submodule.sh index e9d93e91d21..2a6ffa8ac34 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -238,7 +238,6 @@ cmd_update() { git ${wt_prefix:+-C "$wt_prefix"} submodule--helper update \ ${wt_prefix:+--prefix "$wt_prefix"} \ - ${prefix:+--recursive-prefix "$prefix"} \ "$@" }
-- gitgitgadget