-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
chore: use repository HEAD when pulling third party repos #11837
chore: use repository HEAD when pulling third party repos #11837
Conversation
@@ -88,7 +88,7 @@ jobs: | |||
- run: | |||
name: Setup Test Runner | |||
command: | | |||
git clone --recurse-submodules https://github.com/babel/babel-test262-runner | |||
git clone --depth=1 --recurse-submodules https://github.com/babel/babel-test262-runner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that --depth=N
implies --single-branch
.
git clone --branch=gh-pages --single-branch --shallow-since=2020-04-01 https://github.com/kangax/compat-table.git build/compat-table | ||
cd build/compat-table && git checkout -qf $COMPAT_TABLE_COMMIT | ||
git clone --single-branch --shallow-since=2020-04-01 https://github.com/kangax/compat-table.git build/compat-table | ||
cd build/compat-table && git checkout -q $COMPAT_TABLE_COMMIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-f
is to suppress warning when working tree is different than HEAD. This is highly unlikely since we have removed build/compat-table
before cloning.
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/25935/ |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 683ab0d:
|
The
test262
is planning to renamemaster
intomain
. In this PR we removes the--branch
option when cloning third-party repos. By doing sogit
will always clone the repositoryHEAD
, which is the default branch HEAD as of GitHub repos -- so we are agnostic about upstream default branch name.