spack/lib/spack
Todd Gamblin 5f8c706128
Consolidate how Spack uses git (#34700)
Local `git` tests will fail with `fatal: transport 'file' not allowed` when using git 2.38.1 or higher, due to a fix for `CVE-2022-39253`.

This was fixed in CI in #33429, but that doesn't help the issue for anyone's local environment. Instead of fixing this with git config in CI, we should ensure that the tests run anywhere.

- [x] Introduce `spack.util.git`.
- [x] Use `spack.util.git.get_git()` to get a git executable, instead of `which("git")` everywhere.
- [x] Make all `git` tests use a `git` fixture that goes through `spack.util.git.get_git()`.
- [x] Add `-c protocol.file.allow=always` to all `git` invocations under `pytest`.
- [x] Revert changes from #33429, which are no longer needed.
2022-12-28 00:44:11 -08:00
..
docs spack graph: rework to use Jinja templates and builders (#34637) 2022-12-27 15:25:53 +01:00
env Control Werror by converting to Wno-error (#30882) 2022-11-23 12:29:17 -08:00
external archspec: add support for zen4 (#34609) 2022-12-20 11:22:50 +01:00
llnl types: fix type annotations and remove novm annootations for llnl module 2022-12-26 22:28:44 +01:00
spack Consolidate how Spack uses git (#34700) 2022-12-28 00:44:11 -08:00
spack_installable Remove support for running with Python 2.7 (#33063) 2022-11-14 13:11:28 +01:00