Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: ''git submodule sync'' should not add uninitialized submodules to .git/config

From: Jens Lehmann <hidden>
Date: 2016-06-15 22:51:31

Possibly related (same subject, not in this thread)

Am 24.06.2011 01:10, schrieb Andreas Köhler:
There are two minor issues for me left.
(1) The man page of submodule sync talks about "all submodules" and not
"registered submodules". I treated it as "subsequent init" and
personally do not restrict the list of submodules, simply because my
build would not work without them.
While investigating this I stumbled across that too, will post a patch.
(2) It is confusing to have registered submodules in .git/config without
a matching gitlink. Say, you switch between branch a1 with a submodule s
with url u1, to a branch without s, you git clean -xdff (url u1 is still
in .git/config, right?), and then to a branch a2 with s pointing to url
u2. This bugged me.
I think that is ok, because that way git remembers that the user cares
about submodule s even when he switches to a branch where s doesn't
exist. And the documentation is pretty clear that you'll have to use
"git submodule sync" to update the url itself from u1 to u2 when needed.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help