Skip to content

Commit

Permalink
Merge pull request #299 from elvyso/add-submod-msquic
Browse files Browse the repository at this point in the history
Add submodule msquic
  • Loading branch information
qzhuyan authored Oct 5, 2024
2 parents ea3ad60 + ca14446 commit bacaac2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "submodules/msquic"]
path = submodules/msquic
url = https://github.com/microsoft/msquic.git
11 changes: 9 additions & 2 deletions get-msquic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,16 @@ patch_2_3_5()
do_patch "$patch_1"
}


if [ ! -d msquic ]; then
git clone https://github.com/microsoft/msquic.git -b "$VERSION" --recursive --depth 1 --shallow-submodules msquic
if [ -f submodules/msquic/.git ]; then
pushd submodules/msquic
git checkout "$VERSION"
popd
rm -f msquic
ln -s submodules/msquic msquic
else
git clone https://github.com/microsoft/msquic.git -b "$VERSION" --recursive --depth 1 --shallow-submodules msquic
fi
fi

cd msquic
Expand Down
1 change: 1 addition & 0 deletions submodules/msquic
Submodule msquic added at a09a6d

0 comments on commit bacaac2

Please sign in to comment.