Fix `cabal-install:long-tests` with Git >=2.38.1
commit51e448d6afa10ee8b127af981d6abbc53ab8169a
authorRebecca Turner <rbt@sent.as>
Fri, 6 Sep 2024 19:22:57 +0000 (6 12:22 -0700)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Sun, 8 Sep 2024 21:43:26 +0000 (8 21:43 +0000)
tree159c705cdeb3e1ccc4c0534a9cbcd4e44dfafa5a
parent64f8254ee2f5a972307371985a60f5f6b17e886a
Fix `cabal-install:long-tests` with Git >=2.38.1

Closes #10312.

Git 2.38.1 and newer fails to clone from local paths with `fatal:
transport 'file' not allowed` unless `protocol.file.allow=always` is
set.

This is not safe in general, but it's fine in the test suite.

See: https://github.blog/open-source/git/git-security-vulnerabilities-announced/#fn-67904-1
See: https://git-scm.com/docs/git-config#Documentation/git-config.txt-protocolallow
.github/workflows/validate.yml
cabal-install/tests/UnitTests/Distribution/Client/VCS.hs