diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-07-28 18:04:52 +0200 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2020-07-29 11:23:34 -0700 |
commit | 3e1661a1832fdd38946f97f46a1a3c74a2fb4965 (patch) | |
tree | c84be6bf7c668ebf1a975abbc5ebbb33fea3c0c7 /.github/workflows/setup_git.sh | |
parent | c4f29c63844b6eaf5eae03f6749639f04bf19f72 (diff) | |
download | spack-3e1661a1832fdd38946f97f46a1a3c74a2fb4965.tar.gz spack-3e1661a1832fdd38946f97f46a1a3c74a2fb4965.tar.bz2 spack-3e1661a1832fdd38946f97f46a1a3c74a2fb4965.tar.xz spack-3e1661a1832fdd38946f97f46a1a3c74a2fb4965.zip |
Use "fetch-depth: 0" to retrieve all history from remote
Diffstat (limited to '.github/workflows/setup_git.sh')
-rwxr-xr-x | .github/workflows/setup_git.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/setup_git.sh b/.github/workflows/setup_git.sh new file mode 100755 index 0000000000..bd79daf268 --- /dev/null +++ b/.github/workflows/setup_git.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh +git config --global user.email "spack@example.com" +git config --global user.name "Test User" +# With fetch-depth: 0 we have a remote develop +# but not a local branch. Don't do this on develop +if [ "$(git branch --show-current)" != "develop" ] +then + git branch develop origin/develop +fi |