git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git checkout --recurse-submodules doesn't like checking out an older commit after a submodule was removed
@ 2020-05-01  0:54 Mike Hommey
  2020-05-01 14:40 ` Philippe Blain
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Hommey @ 2020-05-01  0:54 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-01 14:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-01  0:54 git checkout --recurse-submodules doesn't like checking out an older commit after a submodule was removed Mike Hommey
2020-05-01 14:40 ` Philippe Blain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).