Re: [regression?] "git status -a" reports modified for empty submodule directory
- From
Ping Yin <pkufranky@gmail.com>
- Date
- Apr 29, 2008, 15:31 UTC
- Message-ID
- <46dff0320804290831u7ef1a78ag2988d5d12f782bdb@mail.gmail.com>
- In-Reply-To
- <46dff0320804220401h26d2f2ebg1748a4a310acc0f5@mail.gmail.com>
On Tue, Apr 22, 2008 at 7:01 PM, Ping Yin <pkufranky@gmail.com> wrote:
Show 27 quoted lines
> # create a super project super > $ mkdir super && cd super && git init > $ touch foo && git add foo && git commit -m "add foo" > > # create a sub project sub > $ mkdir sub && cd sub && git init > $ touch bar && git add bar && git commit -m "add bar" > > # add sub project to super project > $ cd .. > $ git add sub && git commit -m 'add sub' > > # remote contents of subproject > $ rm -rf sub/* sub/.git > > # git status -a regression > $ git status > # On branch master > nothing to commit (working directory clean) > $ git status -a > # On branch master > # Changes to be committed: > # (use "git reset HEAD <file>..." to unstage) > # > # deleted: sub > # >
Another regression following
In the super project super with empty submodule directory sub $ git diff
diff --git a/sub b/sub deleted file mode 160000 index f2c0d45..0000000 --- a/sub +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f2c0d4509a3178c...
-- Ping Yin