git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Possible bug with checkout and submodules
@ 2021-10-16 18:44 Adam Hutchings
  2021-10-16 18:52 ` brian m. carlson
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Hutchings @ 2021-10-16 18:44 UTC (permalink / raw)
  To: git

Hi,

I may have found a bug in Git but I'm not sure if it's intentional or not. I

checked out to a new branch to test a PR on my repo, and the PR added a

submodule. I init'ed and updated the submodule, and when I was done testing, I

went back to my main branch. However, it did not remove the submodule, and

produced this message:


```

$ git checkout main

warning: unable to rmdir 'glfw': Directory not empty

Switched to branch 'main'

$

```


A friend of mine has managed to reproduce this behavior. We believe the expected

outcome is to remove the submodule folder, but this does not seem to happen. Is

this intentional?


Best,



Adam Hutchings

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

end of thread, other threads:[~2021-10-17  0:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-16 18:44 Possible bug with checkout and submodules Adam Hutchings
2021-10-16 18:52 ` brian m. carlson
2021-10-16 20:32   ` Adam Hutchings
2021-10-17  0:30   ` 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).