fix some build warnings from ghc 9.4.6
authorJoey Hess <joeyh@joeyh.name>
Thu, 21 Sep 2023 16:11:01 +0000 (12:11 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 21 Sep 2023 16:11:01 +0000 (12:11 -0400)
commite03e907705cd1ff609172286143825c5198e3b23
tree53a20486c5a20392817df37d0428b011c23cd041
parent784be819b34528e7a5887583046a59784098b0ef
fix some build warnings from ghc 9.4.6

It now notices that a RepoLocation may not be Local, in which case
pattern matching on Local wouldn't do.

However, in these cases, I think it always is a Local. In particular,
Git.Config.read is only run on local repos and upgrades LocalUnknown to
Local.
Git/Construct.hs
Git/CurrentRepo.hs