{"thread":{"id":"25639","subject":"warning: unable to rmdir my/module: Directory not empty","startedAt":"2010-11-04T09:55:59Z","lastAt":"2010-11-04T20:49:17Z","messageCount":2,"participants":["Mathieu Malaterre","Jens Lehmann"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"155154","messageId":"AANLkTi=UpQTzfC39rqW48mqoL0J4Sj6=vA1cJtpfBABV@mail.gmail.com","threadId":"25639","inReplyTo":null,"subject":"warning: unable to rmdir my/module: Directory not empty","fromName":"Mathieu Malaterre","fromEmail":"mathieu.malaterre@gmail.com","sentAt":"2010-11-04T09:55:59Z","receivedAt":"2010-11-04T09:55:59Z","isPatch":false,"sender":{"key":"mathieu.malaterre@gmail.com","avatar":"https://gravatar.com/avatar/0728db14da3b5f9cb00476f504394196a14dac116214d8114f402fad0871bb86?d=mp&s=160"},"body":"Hi all,\n\n  Does anyone knows where is this warning is coming from:\n\nwarning: unable to rmdir my/module: Directory not empty\n\n  I have a git master, an empty branch and a submodule on master.\nSwitching from master to my 'empty' branch always trigger this\nwarning. Here are some steps to reproduce the issue (*). I am using a\ndebian stable system + backports and version is:\n\n$ git --version\ngit version 1.7.1\n\nThanks\n-Mathieu\n\n(*)\n# master\ncd /tmp\nmkdir test\ncd test\ngit init\ntouch README\ngit add README\ngit commit -mREADME\n\n# submodule\ncd ..\nmkdir module\ncd module\ngit init\ntouch MODULE\ngit add MODULE\ngit commit -mMODULE\n\ncd ../test\ngit submodule add file:///tmp/module my/module\ngit commit -a -m\"adding submodule\"\n\n# create an empty branch\ngit symbolic-ref HEAD refs/heads/newbranch\nrm .git/index\ngit clean -fdx\ntouch EMPTY\ngit add EMPTY\ngit commit -a -mEMPTY\n\n# update\ngit checkout master\ngit submodule init\ngit submodule update\ngit checkout newbranch\n"},{"id":"155209","messageId":"4CD31C4D.9050301@web.de","threadId":"25639","inReplyTo":"AANLkTi=UpQTzfC39rqW48mqoL0J4Sj6=vA1cJtpfBABV@mail.gmail.com","subject":"Re: warning: unable to rmdir my/module: Directory not empty","fromName":"Jens Lehmann","fromEmail":"jens.lehmann@web.de","sentAt":"2010-11-04T20:49:17Z","receivedAt":"2010-11-04T20:49:17Z","isPatch":false,"sender":{"key":"jens.lehmann@web.de","avatar":"https://avatars.githubusercontent.com/u/135220?v=4"},"body":"Am 04.11.2010 10:55, schrieb Mathieu Malaterre:\n>   Does anyone knows where is this warning is coming from:\n> \n> warning: unable to rmdir my/module: Directory not empty\n> \n>   I have a git master, an empty branch and a submodule on master.\n> Switching from master to my 'empty' branch always trigger this\n> warning. ...\n\nThis is because submodule deletion is not well supported at the\nmoment. There has been a lot of discussion how to make git handle\nthat better but no one implemented it so far. But it's on my ToDo\nlist, so stay tuned ...\n"}]}