Use "fetch-depth: 0" to retrieve all history from remote

This commit is contained in:
Massimiliano Culpo
2020-07-28 18:04:52 +02:00
committed by Peter Scheibel
parent c4f29c6384
commit 3e1661a183
4 changed files with 19 additions and 10 deletions

9
.github/workflows/setup_git.sh vendored Executable file
View File

@@ -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