git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Test case for checkout of added/deleted submodules in clones
@ 2020-09-21  8:15 Luke Diamand
  2020-09-21  8:15 ` [PATCH 1/1] " Luke Diamand
  0 siblings, 1 reply; 4+ messages in thread
From: Luke Diamand @ 2020-09-21  8:15 UTC (permalink / raw)
  To: git; +Cc: kartic Kaartic Sivaraam, Luke Diamand

I hit some quite confusing (to me anyway) corner cases in `git
submodule` handling of checking out revisions where submodules have been
added or removed.

If you clone a repo with an "old" submodule which is missing from HEAD,
and then try to checkout an older revision, you can sometimes get:

    fatal: not a git repository: ../.git/modules/old
    fatal: could not reset submodule index

If you clone a repo with a "new" submodule, and then checkout an older
revision where it is deleted, you can sometimes find that new submodule
is left lying around.

Luke Diamand (1):
  Test case for checkout of added/deleted submodules in clones

 t/t5619-submodules-missing.sh | 104 ++++++++++++++++++++++++++++++++++
 1 file changed, 104 insertions(+)
 create mode 100755 t/t5619-submodules-missing.sh

-- 
2.28.0.762.g324f61785e


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

end of thread, other threads:[~2020-09-22 14:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21  8:15 [PATCH 0/1] Test case for checkout of added/deleted submodules in clones Luke Diamand
2020-09-21  8:15 ` [PATCH 1/1] " Luke Diamand
2020-09-22  9:35   ` Kaartic Sivaraam
2020-09-22 14:04   ` 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).