diff mbox series

[8/8] submodule update: remove never-used expansion

Message ID 242d3399dfb4fb533ca6cdca452af2717c316672.1654820781.git.gitgitgadget@gmail.com (mailing list archive)
State New, archived
Headers show
Series submodule update: parse all options in C | expand

Commit Message

Glen Choo June 10, 2022, 12:26 a.m. UTC
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 mbox series

Patch

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"} \
 		"$@"
 }