git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question related to submodule and different recurse config options
@ 2022-09-08 15:01 Pieter-Jan Busschaert
  2022-09-18 14:36 ` Philippe Blain
  0 siblings, 1 reply; 3+ messages in thread
From: Pieter-Jan Busschaert @ 2022-09-08 15:01 UTC (permalink / raw)
  To: git

Hello,

I'm trying to set my git config like this (fetch.recurseSubmodules =
on-demand) and (submodule.recurse = true). The goal is to do fetch &
submodule update if-and-only-if the pointed-to commit changes.

However, it seems with this config a git pull will act as if
fetch.recurseSubmodules was set to true (instead of on-demand) and do
a fetch on all of the submodules. For me this does not correspond to
the documentation (which says the value of submodule.recurse will only
be used if fetch.recurseSubmodules is NOT set). I would have thought
that this recent commit:
https://github.com/git/git/commit/ed54e1b31ad1a9a35ef6c23024d325a2c4d85221
describes this scenario and fixed it, but I still have that behaviour
(git 2.37.3). Maybe that patch only covered true/false settings for
fetch.recurseSubmodules and doesn't properly handle the on-demand
setting?

Is what I see the intended behaviour?
Is it possible in any way to configure git to only fetch & update
submodules if the pointed-to commit changes?



Kind regards,

Pieter-Jan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-19 18:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-08 15:01 Question related to submodule and different recurse config options Pieter-Jan Busschaert
2022-09-18 14:36 ` Philippe Blain
2022-09-19 18:43   ` Glen Choo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).