Re: Bug: All git operations fail when .git contains a non-existent gitdir
- From
- Tom 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).