summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-12-05 13:00:20 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-12-05 13:00:20 -0800
commitc83386d14ded4968c93098d9413425ab29eb38a0 (patch)
tree14c64c285e5de9db9f0666953801f9064a948faf /git-submodule.sh
parentMerge branch 'nd/wt-status-align-i18n' (diff)
parentsubmodule update: remove unnecessary orig_flags variable (diff)
downloadtgif-c83386d14ded4968c93098d9413425ab29eb38a0.tar.xz
Merge branch 'jl/submodule-update-retire-orig-flags'
Code clean-up. * jl/submodule-update-retire-orig-flags: submodule update: remove unnecessary orig_flags variable
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index ed02f03214..2677f2e8b3 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -721,7 +721,6 @@ cmd_deinit()
cmd_update()
{
# parse $args after "submodule ... update".
- orig_flags=
while test $# -ne 0
do
case "$1" in
@@ -746,7 +745,6 @@ cmd_update()
--reference)
case "$2" in '') usage ;; esac
reference="--reference=$2"
- orig_flags="$orig_flags $(git rev-parse --sq-quote "$1")"
shift
;;
--reference=*)
@@ -780,7 +778,6 @@ cmd_update()
break
;;
esac
- orig_flags="$orig_flags $(git rev-parse --sq-quote "$1")"
shift
done
@@ -924,7 +921,7 @@ Maybe you want to use 'update --init'?")"
prefix="$prefix$sm_path/"
clear_local_git_env
cd "$sm_path" &&
- eval cmd_update "$orig_flags"
+ eval cmd_update
)
res=$?
if test $res -gt 0