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

Error staging submodule removal when empty directory present

From
JHJosh Hagins <hagins.josh@gmail.com>
Date
Apr 14, 2015, 18:23 UTC
Message-ID
<CANuW5x3N07ftrYmTF8LihHNEUsA=nn=b_EcOQ7BPYjOMfkDtVA@mail.gmail.com>

I'm having a hard time understanding why ``git stash save" chokes on a submodule removal when an empty directory is present at the removed submodule's path. If the submodule is staged for deletion, why not just leave the empty directory alone?

The following Gist illustrates the situation I am encountering, and includes OS information, Git version (2.3.5), and GIT_TRACE output: https://gist.github.com/jawshooah/d60ff70952cff18099d7

Relevant post in the git-users Google Group, where I was encouraged to query the mailing list: https://groups.google.com/forum/#!topic/git-users/3YxxpVVXtqg

Thanks, Josh

Message 1 of 1 in “Error staging submodule removal when empty directory present”
  1. Josh HaginsApr 14, 2015

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.