We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e87b84a + 781a98a commit 0cd9c37Copy full SHA for 0cd9c37
build/compileSU2.sh
@@ -44,7 +44,12 @@ if [ ! -z "$branch" ]; then
44
mkdir "src"
45
fi
46
cd "src"
47
- git clone --recursive https://github.com/su2code/SU2 $name
+ if [ -d $name ]; then
48
+ # Remove any previous local repo. For non-ephemeral self-hosted runners
49
+ rm -rf $name
50
+ fi
51
+ # Clone only the latest commit, without the Git history. It is much faster this way.
52
+ git clone --recursive --depth=1 --shallow-submodules https://github.com/su2code/SU2 $name
53
cd $name
54
git config --add remote.origin.fetch '+refs/pull/*/merge:refs/remotes/origin/refs/pull/*/merge'
55
git config --add remote.origin.fetch '+refs/heads/*:refs/remotes/origin/refs/heads/*'
0 commit comments