summaryrefslogtreecommitdiff
path: root/.github/workflows/setup_git.ps1
blob: 0acb9a9f4609e5c093f653561d54c0139ae5c74a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# (c) 2021 Lawrence Livermore National Laboratory

Set-Location spack

git config --global user.email "spack@example.com"
git config --global user.name "Test User"
git config --global core.longpaths true

# See https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85 (CVE-2022-39253)
# This is needed to let some fixture in our unit-test suite run
git config --global protocol.file.allow always

if ($(git branch --show-current) -ne "develop")
{
    git branch develop origin/develop
}