Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] submodule add: always initialize .git/config entry

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:32

Jens Lehmann [off-list ref] writes:
Am 24.06.2011 06:13, schrieb Junio C Hamano:
quoted
Shouldn't "submodule add" add an entry for .git/config even when it cloned
from elsewhere?
Yes, we should be consistent here.
quoted
I suspect this fix will cascade to breakage elsewhere, but I've run out of
energy and inclination to look at the submodule code tonight, so I'll let
the list to take it further from here.
Ok, t7406 expected "git submodule init" to copy the new update setting
into .git/config for a newly added submodule, which it didn't do anymore
because it already found the url set. I solved that by teaching init to
only then copy the url and update settings if they aren't present yet.
Now all tests are running fine and your change to the test I added in
jl/submodule-add-relurl-wo-upstream isn't necessary anymore.

When I cherry pick that onto cbd0a3c6bc in your current pu branch and
resolve the conflicts all tests run fine (if you want me to resend this
patch based on that commit to avoid the conflicts with i18n and the
"submodule add: clean up duplicated code" patch please just say so).
Hmm, now 7610 seems to expect somewhat different behaviour and fails.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help