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

git checkout --recurse-submodules doesn't like checking out an older commit after a submodule was removed

From
Mike Hommey <mh@glandium.org>
Date
May 1, 2020, 00:54 UTC
Message-ID
<20200501005432.h62dnpkx7feb7rto@glandium.org>
Hi,
Doing the following fails:

$ git clone --recurse-submodules https://github.com/trailofbits/winchecksec/ $ cd winchecksec $ git checkout --recurse-submodules 93ffe67dbfc757bf6f440d80b8acf88e652ed60a fatal: not a git repository: ../.git/modules/pe-parse fatal: could not reset submodule index

The main reason is that the pe-parse directory/submodule was removed in the commit that follows 93ffe67dbfc757bf6f440d80b8acf88e652ed60a (which is current master).

This also leaves the tree in a bad state, and it's hard to fix anything from that state.

Mike
Next: Philippe Blain
Message 1 of 2 in “git checkout --recurse-submodules doesn't like checking out an older commit after a submodule was removed”
  1. Mike HommeyMay 1, 2020
  2. Philippe BlainMay 1, 2020

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.