* warning: unable to rmdir my/module: Directory not empty
@ 2010-11-04 9:55 Mathieu Malaterre
2010-11-04 20:49 ` Jens Lehmann
0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Malaterre @ 2010-11-04 9:55 UTC (permalink / raw)
To: git
Hi all,
Does anyone knows where is this warning is coming from:
warning: unable to rmdir my/module: Directory not empty
I have a git master, an empty branch and a submodule on master.
Switching from master to my 'empty' branch always trigger this
warning. Here are some steps to reproduce the issue (*). I am using a
debian stable system + backports and version is:
$ git --version
git version 1.7.1
Thanks
-Mathieu
(*)
# master
cd /tmp
mkdir test
cd test
git init
touch README
git add README
git commit -mREADME
# submodule
cd ..
mkdir module
cd module
git init
touch MODULE
git add MODULE
git commit -mMODULE
cd ../test
git submodule add file:///tmp/module my/module
git commit -a -m"adding submodule"
# create an empty branch
git symbolic-ref HEAD refs/heads/newbranch
rm .git/index
git clean -fdx
touch EMPTY
git add EMPTY
git commit -a -mEMPTY
# update
git checkout master
git submodule init
git submodule update
git checkout newbranch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: warning: unable to rmdir my/module: Directory not empty
2010-11-04 9:55 warning: unable to rmdir my/module: Directory not empty Mathieu Malaterre
@ 2010-11-04 20:49 ` Jens Lehmann
0 siblings, 0 replies; 2+ messages in thread
From: Jens Lehmann @ 2010-11-04 20:49 UTC (permalink / raw)
To: Mathieu Malaterre; +Cc: git
Am 04.11.2010 10:55, schrieb Mathieu Malaterre:
> Does anyone knows where is this warning is coming from:
>
> warning: unable to rmdir my/module: Directory not empty
>
> I have a git master, an empty branch and a submodule on master.
> Switching from master to my 'empty' branch always trigger this
> warning. ...
This is because submodule deletion is not well supported at the
moment. There has been a lot of discussion how to make git handle
that better but no one implemented it so far. But it's on my ToDo
list, so stay tuned ...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-04 20:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-04 9:55 warning: unable to rmdir my/module: Directory not empty Mathieu Malaterre
2010-11-04 20:49 ` Jens Lehmann
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).