git/list[1] front-page[2] threads[3] people[4] search[5] about
 

warning: unable to rmdir my/module: Directory not empty

From
Mathieu Malaterre <mathieu.malaterre@gmail.com>
Date
Nov 4, 2010, 09:55 UTC
Message-ID
<AANLkTi=UpQTzfC39rqW48mqoL0J4Sj6=vA1cJtpfBABV@mail.gmail.com>
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

Next: Jens Lehmann
Message 1 of 2 in “warning: unable to rmdir my/module: Directory not empty”
  1. Mathieu MalaterreNov 4, 2010
  2. Jens LehmannNov 4, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.