Skip to content

Commit

Permalink
Add submodule msquic
Browse files Browse the repository at this point in the history
  • Loading branch information
elvyso committed Sep 27, 2024
1 parent 706fe1c commit ca14446
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 ca14446

Please sign in to comment.