-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Update remote when syncing subrepos #20002
Conversation
A couple of comments:
|
Ahh, good point. I did not test that, but I'll be sure to do so. |
Ensure that .gitrepo remote is updated correctly
Okay, upon testing, I can confirm the following for
So, I think we should be good. |
6478a4a
to
86c0521
Compare
As this PR seems focused on just updating the git-subrepo commands, and my experience with using git-subrepo pales next to @ccordoba12 and @dalthviz (whereas I do make much heavier use of git submodule), I'll leave the review in their much more capable hands |
Great! Thanks for checking that @mrclary! |
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 @mrclary!
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 @mrclary ! LGTM 👍
When updating subrepos in Spyder using the current instructions (
git subrepo clone
), the remote specification in.gitrepo
is not updated to reflect the cloned remote, but remains as the original upstream specification.This can be an issue for any process that requires access to the remote repository at the commit and/or branch specified in
.gitrepo
, since that commit and/or branch may not exist on the (incorrectly) specified remote. The conda-based installers are an example of such a process.This PR changes the instructions to use
git subrepo pull ... -r <remote> -u
to ensure that the remote specification is also updated.Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct: @mrclary