-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Try cloning repo from main & master #10843
Conversation
Sorry for the delayed reply! We need to do some internal testing make sure this doesn't break any existing workflows (it's not covered well by the test suite), but we definitely think this is a good idea and thanks for the PR! |
@Zackere Thank you for this PR! Since we were previously assuming a single default, and now we have a list of defaults to check ( I tested this on an example repo I made from an existing project (https://github.com/pmbaumgartner/clone-testing), as well as the current A branch that doesn't exist:
When I have it set to
In the rare case that neither
And finally, a test that the default of using the projects repo still works (now w/ additional info about branch used):
|
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.
Thanks again @Zackere for the PR and to @pmbaumgartner for the extensive tests & utility function!
I had just one small comment and then I think this should be good to merge.
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
* Try cloning repo from main & master * fixup! Try cloning repo from main & master * fixup! fixup! Try cloning repo from main & master * refactor clone and check for repo:branch existence * spacing fix * make mypy happy * type util function * Update spacy/cli/project/clone.py Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com> Co-authored-by: Peter Baumgartner <5107405+pmbaumgartner@users.noreply.github.com> Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Resolve #10458
Description
Types of change
Checklist