Skip to content

Commit 6525bb9

Browse files
committed
Make git-clone faster by fetching only the last commit of SU2 and the submodules
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
1 parent e87b84a commit 6525bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/compileSU2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if [ ! -z "$branch" ]; then
4444
mkdir "src"
4545
fi
4646
cd "src"
47-
git clone --recursive https://github.com/su2code/SU2 $name
47+
git clone --recursive --depth=1 --shallow-submodules https://github.com/su2code/SU2 $name
4848
cd $name
4949
git config --add remote.origin.fetch '+refs/pull/*/merge:refs/remotes/origin/refs/pull/*/merge'
5050
git config --add remote.origin.fetch '+refs/heads/*:refs/remotes/origin/refs/heads/*'

0 commit comments

Comments
 (0)