Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add submodule msquic #299

Merged
merged 1 commit into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rm -f msquic
rm -rf 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
Loading