Skip to content

Commit 781a98a

Browse files
committed
Add comments why the proposed changes are needed
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
1 parent 350501e commit 781a98a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/compileSU2.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ if [ ! -z "$branch" ]; then
4545
fi
4646
cd "src"
4747
if [ -d $name ]; then
48+
# Remove any previous local repo. For non-ephemeral self-hosted runners
4849
rm -rf $name
4950
fi
51+
# Clone only the latest commit, without the Git history. It is much faster this way.
5052
git clone --recursive --depth=1 --shallow-submodules https://github.com/su2code/SU2 $name
5153
cd $name
5254
git config --add remote.origin.fetch '+refs/pull/*/merge:refs/remotes/origin/refs/pull/*/merge'

0 commit comments

Comments
 (0)