Skip to content

Commit 3ecee4c

Browse files
authored
Merge pull request #5 from martin-g/shallow-git-fetch
Shallow fetch the branch to test
2 parents 0cd9c37 + 09ecfb5 commit 3ecee4c

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
@@ -53,7 +53,7 @@ if [ ! -z "$branch" ]; then
5353
cd $name
5454
git config --add remote.origin.fetch '+refs/pull/*/merge:refs/remotes/origin/refs/pull/*/merge'
5555
git config --add remote.origin.fetch '+refs/heads/*:refs/remotes/origin/refs/heads/*'
56-
git fetch origin
56+
git fetch origin --depth=1 $branch:$branch
5757
git checkout $branch
5858
git submodule update
5959
else

0 commit comments

Comments
 (0)