submodule update: remove unnecessary orig_flags variable
commit361412828ab580e145c3350cf075b283ebe331a5
authorJens Lehmann <Jens.Lehmann@web.de>
Mon, 11 Nov 2013 20:55:52 +0000 (11 21:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Nov 2013 22:10:57 +0000 (11 14:10 -0800)
tree6e251b6233dce9beb305144b46efb1a193eb8380
parent0ecd94d7d728606e0047a44e60a277ff4e7b3990
submodule update: remove unnecessary orig_flags variable

cmd_update() in the submodule script tries to preserve the options given
on the command line in the "orig_flags" variable to pass them on into the
recursion when the '--recursive' option is given. But this isn't necessary
because all the variables set by the options will be seen in the recursion
too as that is achieved by executing "eval cmd_update".

The same has already been done for cmd_status() in e15bec0ec, so let's
clean up cmd_update() likewise. Also add a test to make sure that a
submodule name given on the command line is not passed into the recursion
(which was the goal of adding the orig_flags variable in 98dbe63db).

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
t/t7406-submodule-update.sh