See https://github.com/dart-lang/sdk/issues/52067#issuecomment-1516768336. We're finding the git root by looking only for files, but in this case `.git` is a file.