git-submodule.sh: remove duplicate call to set_rev_name
commitb545cd15af873fe15e692daaa6e804b191b451cc
authorFredrik Gustafsson <iveqy@iveqy.com>
Mon, 17 Jun 2013 09:55:36 +0000 (17 11:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Jun 2013 20:26:42 +0000 (17 13:26 -0700)
tree9c2ea540b98e341a606f44879bf54152b58a710b
parentfb7dfaa710da6f9ebb854f70ffc1c78668a1e70c
git-submodule.sh: remove duplicate call to set_rev_name

set_rev_name is a possiblly expensive operation. If a submodule has
changes in it, set_rev_name was called twice.

Move call to set_rev_name so it's only called once, no matter which
codepath is taken.

Signed-off-by: Fredrik Gustafsson <iveqy@iveqy.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh