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 8, 2016, 01:22 UTC
Message-ID
<CAGZ79kZU401JRp4EtwTGHzk3Zq+snQhX3GArDfF6SpKxsSwtWg@mail.gmail.com>
In-Reply-To
<20161208003940.28794-1-vi0oss@gmail.com>
On Wed, Dec 7, 2016 at 4:39 PM,  <vi0oss@gmail.com> wrote:
>
>     Previously test contained errorneous
>     test_must_fail, which was masked by
>     missing &&.

I wonder if we could make either the test_must_fail intelligent to detect such a broken && call chain or the test_expect_success macro to see for those broken chains.

Patch looks good to me except one very minor nit. :)
Show 9 quoted lines
> +test_expect_success 'nested submodule alternate in works and is actually used' '
> +       test_when_finished "rm -rf supersuper-clone" &&
> +       git clone --recursive --reference supersuper supersuper supersuper-clone &&
> +       (
> +               cd supersuper-clone &&
> +               # test superproject has alternates setup correctly
> +               test_alternate_is_used .git/objects/info/alternates . &&
> +               # immediate submodule has alternate:
> +               test_alternate_is_used .git/modules/subwithsub/objects/info/alternates subwithsub
here is a && missing ;)
Previous: vi0oss@gmail.comNext: Jeff King
Message 2 of 7 in “submodule--helper: set alternateLocation for cloned submodules”
  1. submodule--helper: set alternateLocation for cloned submodulesvi0oss@gmail.com, Dec 8, 2016
  2. Stefan BellerDec 8, 2016
  3. Jeff KingDec 8, 2016
  4. Stefan BellerDec 8, 2016
  5. vi0ossDec 8, 2016
  6. Stefan BellerDec 8, 2016
  7. Jeff KingDec 8, 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.