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

Re: Bug: All git operations fail when .git contains a non-existent gitdir

From
TCTom Cook <tom.k.cook@gmail.com>
Date
Jul 23, 2021, 08:39 UTC
Message-ID
<CAFSh4UySxQLS10M4XJHyNQ313wuLu1rg2Jnahf-Dk2uxJkw17w@mail.gmail.com>
In-Reply-To
<3D8703D8-54E6-4CF0-9E9F-CCAFFAA8914C@gmail.com>
On Fri, Jul 23, 2021 at 9:23 AM Atharva Raykar <raykar.ath@gmail.com> wrote:
> I am not too familiar with this area, and I don't know how feasible it is to
> delay setting up the environment until after looking at the 'ls-remote'
> arguments. At a cursory glance, it looks difficult to do without large
> structural changes to the code.

Understood. This happened to bite us particularly hard, because the context where we found it is during a `go mod download` and `go` swallows the error, attempts something else and then reports that the something else failed with no indication what the underlying error is. It took us a while to track down what was going on (see https://github.com/golang/go/issues/47311).

Previous: Atharva RaykarNext: Ævar Arnfjörð Bjarmason
Message 13 of 17 in “Bug: All git operations fail when .git contains a non-existent gitdir”
  1. Tom CookJul 21, 2021
  2. brian m. carlsonJul 21, 2021
  3. Tom CookJul 22, 2021
  4. setup: only die on invalid .git under RUN_SETUPÆvar Arnfjörð Bjarmason, Jul 22, 2021
  5. Junio C HamanoJul 22, 2021
  6. Ævar Arnfjörð BjarmasonJul 22, 2021
  7. Junio C HamanoJul 23, 2021
  8. Tom CookJul 23, 2021
  9. Andrei RybakJul 22, 2021
  10. Ævar Arnfjörð BjarmasonJul 23, 2021
  11. Junio C HamanoJul 23, 2021
  12. Atharva RaykarJul 23, 2021
  13. Tom CookJul 23, 2021
  14. Ævar Arnfjörð BjarmasonJul 23, 2021
  15. Atharva RaykarJul 23, 2021
  16. David AguilarAug 30, 2021
  17. Tom CookAug 31, 2021

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.