Code

fetch: Also fetch submodules in subdirectories in on-demand mode
authorJens Lehmann <Jens.Lehmann@web.de>
Mon, 20 Jun 2011 18:18:03 +0000 (20:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Jun 2011 20:04:49 +0000 (13:04 -0700)
commitea2d325b88562a074337a8bd30c37d3405c24fae
treeee3ce9f3a9a422aba35e5fe259e05e6f16680d72
parentdaab4eeafa0dc620d67ccb57c28e08f6f8b3868c
fetch: Also fetch submodules in subdirectories in on-demand mode

When on-demand mode was active examining the new commits just fetched in
the superproject (to check if they record commits for submodules which are
not downloaded yet) wasn't done recursively. Because of that fetch did not
recursively fetch submodules living in subdirectories even when it should
have.

Fix that by adding the RECURSIVE flag to the diff_options used to check
the new commits and avoid future regressions in this area by moving a
submodule in t5526 into a subdirectory.

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c
t/t5526-fetch-submodules.sh