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

Bug: git-gui stops showing untracked files when invalid .git file is present in a subfolder

From
Thibault Kruse <tibokruse@googlemail.com>
Date
Dec 21, 2014, 19:23 UTC
Message-ID
<CAByu6UUtuTjXgJpH3GE1qCRvQTBefm3zO2cfa+cR_ej1UqJ3mw@mail.gmail.com>
To reproduce:

git init testrepo cd testrepo touch test.txt mkdir sub echo 'gitdir: path/to/nowhere' >> sub/.git git gui

Displays no files/changes, no error message. Should display test.txt in git-gui. Or possibly fail with error (though git status does not fail). Shell should display error message.

Observed on Ubuntu 13.10 using git version 1.8.3.2 git-gui version 0.17.0

Note the same happens when writing rubbish like 'xyz' into that .git file (Violating gitfile format).

Note that when trying to launch git gui from that subfolder, I get a valid error message: fatal: Not a git repository: path/to/nowhere same as when running git status

I guess that git-gui tries to do something with submodules, but some failure is not handled well.

regards,
  Thibault
Message 1 of 1 in “Bug: git-gui stops showing untracked files when invalid .git file is present in a subfolder”
  1. Thibault KruseDec 21, 2014

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.