From: Tom Cook Date: Fri, 23 Jul 2021 08:39:58 GMT Subject: Re: Bug: All git operations fail when .git contains a non-existent gitdir Message-ID: In-Reply-To: <3D8703D8-54E6-4CF0-9E9F-CCAFFAA8914C@gmail.com> On Fri, Jul 23, 2021 at 9:23 AM Atharva Raykar 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).