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

Re: [regression?] "git status -a" reports modified for empty submodule directory

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Apr 22, 2008, 12:15 UTC
Message-ID
<480DD6D8.9040900@viscovery.net>
In-Reply-To
<46dff0320804220401h26d2f2ebg1748a4a310acc0f5@mail.gmail.com>
Ping Yin schrieb:
Show 19 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)
This should have reported:

# On branch master # Changed but not updated: # (use "git add/rm <file>..." to update what will be committed) # # deleted: sub no changes added to commit (use "git add" and/or "git commit -a")

Right?
Show 7 quoted lines
> $ git status -a
> # On branch master
> # Changes to be committed:
> #   (use "git reset HEAD <file>..." to unstage)
> #
> #       deleted:    sub
> #
There's nothing wrong with this.
-- Hannes
Previous: Ping YinNext: Ping Yin
Message 3 of 28 in “[regression?] "git status -a" reports modified for empty submodule directory”
  1. Ping YinApr 22, 2008
  2. Ping YinApr 22, 2008
  3. Johannes SixtApr 22, 2008
  4. Ping YinApr 22, 2008
  5. Johannes SixtApr 22, 2008
  6. Roman ShaposhnikApr 22, 2008
  7. Ping YinApr 29, 2008
  8. 0/2 Add tests for submodule with empty directoryPing Yin, Apr 29, 2008
  9. 1/2 t4027: test diff for submodule with empty directoryPing Yin, Apr 29, 2008
  10. 2/2 Add t7506 to test submodule related functions for git-statusPing Yin, Apr 29, 2008
  11. Junio C HamanoApr 29, 2008
  12. Johannes SixtApr 30, 2008
  13. Junio C HamanoApr 30, 2008
  14. Ping YinApr 30, 2008
  15. 0/4 Fix regression for unchecked out submodulesPing Yin, May 2, 2008
  16. 1/4 t4027: test diff for submodule with empty directoryPing Yin, May 2, 2008
  17. 2/4 Add t7506 to test submodule related functions for git-statusPing Yin, May 2, 2008
  18. 3/4 Fix diff regression for submodules not checked outPing Yin, May 2, 2008
  19. 4/4 Fix ie_match_stat for non-checked-out submodulePing Yin, May 2, 2008
  20. Junio C HamanoMay 2, 2008
  21. Ping YinMay 2, 2008
  22. Junio C HamanoMay 2, 2008
  23. Ping YinMay 2, 2008
  24. Ping YinMay 3, 2008
  25. Johannes SchindelinMay 3, 2008
  26. Junio C HamanoMay 3, 2008
  27. Junio C HamanoMay 4, 2008
  28. Ping YinMay 4, 2008

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.