]> git.ipfire.org Git - thirdparty/git.git/commit - unpack-trees.c
unpack-trees: don't respect submodule.update
authorBrandon Williams <bmwill@google.com>
Thu, 3 Aug 2017 18:19:53 +0000 (11:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Aug 2017 20:11:01 +0000 (13:11 -0700)
commit7463e2ec3e932707b70b5d5c82df51bfbb6aa77d
tree7be63250f394c161f96f9c2a64ce8f3f77d998d4
parentfdfa9e97dbffdc6868a1a046456c0ad67dda9e29
unpack-trees: don't respect submodule.update

The 'submodule.update' config was historically used and respected by the
'submodule update' command because update handled a variety of different
ways it updated a submodule.  As we begin teaching other commands about
submodules it makes more sense for the different settings of
'submodule.update' to be handled by the individual commands themselves
(checkout, rebase, merge, etc) so it shouldn't be respected by the
native checkout command.

Also remove the overlaying of the repository's config (via using
'submodule_config()') from the commands which use the unpack-trees
logic (checkout, read-tree, reset).

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
submodule.c
unpack-trees.c