summaryrefslogtreecommitdiff
path: root/.github/workflows/setup_git.sh
AgeCommit message (Collapse)AuthorFilesLines
2022-12-28Consolidate how Spack uses `git` (#34700)Todd Gamblin1-4/+0
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-10-20FIX CI after git update (#33429)Massimiliano Culpo1-0/+4
Add `protocol.file.allow always` to git configuration in CI
2021-11-26Use bash in setup_git.sh (#27676)Harmen Stoppels1-1/+1
2021-11-18ci: run style unit tests only if we target develop (#27472)Harmen Stoppels1-5/+4
Some tests assume the base branch is develop, but this branch may not have been checked out.
2020-07-29Use "fetch-depth: 0" to retrieve all history from remoteMassimiliano Culpo1-0/+9