summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-07-13 14:31:37 -0700
committerJunio C Hamano <gitster@pobox.com>2011-07-13 14:31:37 -0700
commit182f22893078a65110aaaf98100e85618fca83b2 (patch)
treec72d56c7680306a1d64ef73a1e993f021d1c4c00 /submodule.c
parentdf9b29ce82ba24729d5431f5e9751470e3a44f25 (diff)
parentea2d325b88562a074337a8bd30c37d3405c24fae (diff)
downloadgit-182f22893078a65110aaaf98100e85618fca83b2.tar.gz
Merge branch 'jl/maint-fetch-recursive-fix'
* jl/maint-fetch-recursive-fix: fetch: Also fetch submodules in subdirectories in on-demand mode
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/submodule.c b/submodule.c
index b6dec70bd1..1ba9646d34 100644
--- a/submodule.c
+++ b/submodule.c
@@ -388,6 +388,7 @@ void check_for_new_submodule_commits(unsigned char new_sha1[20])
while (parent) {
struct diff_options diff_opts;
diff_setup(&diff_opts);
+ DIFF_OPT_SET(&diff_opts, RECURSIVE);
diff_opts.output_format |= DIFF_FORMAT_CALLBACK;
diff_opts.format_callback = submodule_collect_changed_cb;
if (diff_setup_done(&diff_opts) < 0)