# Error staging submodule removal when empty directory present

1 messages from 2015-04-14 to 2015-04-14. Participants: Josh Hagins.
Thread: https://gitlist.dev/t/39076

## Josh Hagins, 2015-04-14 18:23

Subject: Error staging submodule removal when empty directory present
Message-ID: <CANuW5x3N07ftrYmTF8LihHNEUsA=nn=b_EcOQ7BPYjOMfkDtVA@mail.gmail.com>
URL: https://gitlist.dev/e/CANuW5x3N07ftrYmTF8LihHNEUsA%3Dnn%3Db_EcOQ7BPYjOMfkDtVA%40mail.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

```
