git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] submodule--helper: set alternateLocation for cloned submodules

From
Stefan Beller <sbeller@google.com>
Date
Dec 7, 2016, 20:26 UTC
Message-ID
<CAGZ79ka=XgO-VyS+Jqq2Fy28kPMy6HnXBAHb79Dt3NegZFd6kw@mail.gmail.com>
In-Reply-To
<xmqq4m2fxzl2.fsf@gitster.mtv.corp.google.com>
On Wed, Dec 7, 2016 at 12:18 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 14 quoted lines
> Stefan Beller <sbeller@google.com> writes:
>
>>> This patch makes all not just the root repository, but also
>>> all submodules (recursively) have submodule.alternateLocation
>>> and submodule.alternateErrorStrategy configured, making Git
>>> search for possible alternates for nested submodules as well.
>>
>> Sounds great!
>
> Is it safe to assume that all the submodules used recursively by
> submodules share the same structure upstream?  Does the alternate
> location mechanism degrades sensibly if this assumption turns out to
> be false (i.e. "possible alternates" above turns out to be mere
> possibility and not there)?

According to the last test in the patch, this seems to be doing the sensible thing.

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 7 in “submodule--helper: set alternateLocation for cloned submodules”
  1. submodule--helper: set alternateLocation for cloned submodulesvi0oss@gmail.com, Dec 7, 2016
  2. Stefan BellerDec 7, 2016
  3. Junio C HamanoDec 7, 2016
  4. Stefan BellerDec 7, 2016
  5. Junio C HamanoDec 7, 2016
  6. vi0ossDec 7, 2016
  7. Stefan BellerDec 7, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.