]> git.ipfire.org Git - thirdparty/git.git/commit - git-submodule.sh
submodule sync: skip work for inactive submodules
authorBrandon Williams <bmwill@google.com>
Thu, 16 Mar 2017 22:29:45 +0000 (15:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Mar 2017 18:06:09 +0000 (11:06 -0700)
commite7849a9677e9db6af81f568ae40ad2eddf5d3f0d
treef51681e11255726dc8e5c30b6ef8031d18a33fd6
parent6dc9f01f33bdbaebcf811c89766d4e4902a96f27
submodule sync: skip work for inactive submodules

Sync does some work determining what URLs should be used for a submodule
but then throws this work away if the submodule isn't active.  Instead
perform the activity check earlier and skip inactive submodule in order
to avoid doing unnecessary work.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh