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 reset-submodule script #122

Merged
merged 2 commits into from
Dec 4, 2017
Merged

add reset-submodule script #122

merged 2 commits into from
Dec 4, 2017

Conversation

BusyJay
Copy link
Member

@BusyJay BusyJay commented Dec 1, 2017

So when switching branch/tag, we can cleanup workspace conveniently.

git submodule update --init third_party/boringssl
git submodule update --init third_party/cares/cares
git submodule update --init third_party/zlib
cd third_party/zlib
Copy link
Contributor

Choose a reason for hiding this comment

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

why cd zlib here?

Copy link
Member Author

Choose a reason for hiding this comment

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

#!/usr/bin/env bash
git submodule update --init grpc-sys/grpc
cd grpc-sys/grpc
git submodule update --init third_party/boringssl
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use git submodule update --init --recursive directly?

Copy link
Member Author

Choose a reason for hiding this comment

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

Then many unused submodules get initialized, which can be slow and probably fail due to network censor.

@siddontang
Copy link
Contributor

does the script have the executive mode?

@BusyJay
Copy link
Member Author

BusyJay commented Dec 2, 2017

Yes.

@siddontang
Copy link
Contributor

LGTM

@siddontang
Copy link
Contributor

PTAL @overvenus

Copy link
Member

@overvenus overvenus left a comment

Choose a reason for hiding this comment

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

lgtm

@siddontang siddontang merged commit e5ba53f into master Dec 4, 2017
@siddontang siddontang deleted the reset-submodule branch December 4, 2017 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants