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

Re: bug: Directory replaced by submodule -> checkout fails

From
Thomas Braun <thomas.braun@virtuell-zuhause.de>
Date
Oct 18, 2019, 12:02 UTC
Message-ID
<f66f0587-4d61-71e8-fc87-3278f1023e3d@virtuell-zuhause.de>
In-Reply-To
<20191017230751.GC4049@pseudoephedrine.nightmare-heaven.no-ip.biz>
Am 18.10.2019 um 01:07 schrieb Christopher Collins:
Hi Christopher,
Show 28 quoted lines
> ### Reproduce:>
> 
> git clone git@github.com:JuulLabs-OSS/mcuboot.git
> cd mcuboot
> git submodule init
> git submodule update
> git checkout ae01f153b11637feaedbc9d9042172fba2e080c0
> 
> ### Discussion:
> 
> In the above sequence, the last step (checkout) fails with this error:
> 
>     error: The following untracked working tree files would be overwritten by checkout:
>             ext/mbedtls/include/mbedtls/asn1.h
>             ext/mbedtls/include/mbedtls/bignum.h
>             ext/mbedtls/include/mbedtls/check_config.h
>             ext/mbedtls/include/mbedtls/config.h
>             ext/mbedtls/include/mbedtls/ecdsa.h
>             ext/mbedtls/include/mbedtls/ecp.h
>             ext/mbedtls/include/mbedtls/md.h
>             ext/mbedtls/include/mbedtls/oid.h
>             ext/mbedtls/include/mbedtls/pk.h
>             ext/mbedtls/include/mbedtls/platform.h
>             ext/mbedtls/include/mbedtls/platform_util.h
>             ext/mbedtls/include/mbedtls/threading.h
>     Please move or remove them before you switch branches.
>     Aborting
> 

This is a known bug unfortunately. See https://public-inbox.org/git/CAGZ79kYTY6U0eNwvU0PcDyt_QXGyYGm5VkDvWLtuQgQG6BbtFA@mail.gmail.com/ for reference.

Previous: Christopher CollinsNext: Christopher Collins
Message 2 of 3 in “bug: Directory replaced by submodule -> checkout fails”
  1. Christopher CollinsOct 17, 2019
  2. Thomas BraunOct 18, 2019
  3. Christopher CollinsOct 18, 2019

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.