-
Notifications
You must be signed in to change notification settings - Fork 55
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
Missing documentation of -o
flags supported on push
#962
Comments
Generally the docs are pretty lite on how to push changes from a 'partial clone' back to the main repo, in particular for workflows where one does not have direct push access to the main repo but needs to create a PR instead. When I push to the proxy, will it try to directly push that to the underlying repo? That is obviously not what I want with a PR workflow. |
True we need to improve the docs here for sure. Yes we do push to the main repo. So access is required. One way around that would be to do a github fork of the full main repo and do the PR there. The other alternative is what you are doing: Provide a partial repo to do the PR in. From there you have two options:
You are in the middle of discovering the reasons why the longer term goal for the Josh project is to provide an alternative to github as a code review tool: |
That's what we will have to do the the syncs back to the rustc monorepo then.
Yeah there's no way the infra team will let us just push to the full repo. We need to go through the same queue and process as everyone else. This has nothing to do with github. Would be nice if josh could be told 'the base is that other branch in that other repo over there', rather than having to have the base branch in the same repo as the one it will push to. Also forcing the use of the base even if the branch-to-push-to already exists would be useful. |
There is something else going on with pushing that I do not understand... I am doing
where Further down the history (towards the tip), |
That does indeed sound a bit strange. In particular since rust-lang/rust@8e3b9bc does not seem related to miri. |
FTR, |
Speaking of
However, that is not what I am seeing in practice. I often see the first strategy fail with an error like
but the second strategy still works fine in those situations. Is that expected behavior? This makes pushing a bit more annoying since I need to set up two branches (the base and the to-be-pushed-to branch). It might be worth at least documenting more clearly. |
We have a case and when finding existing issue before creating one, we found this is relevant issue. We want to import another project that is updating overtime to our monorepo. We want to use another project with specific branch, for example when we use the question is, how to import another project's specific branch to monorepo's main branch? |
Reading #950 I learned that there is a
-o base
flag. It is not mentioned in the docs, so would be good if the docs could be completed. Are there more flags like that?-o merge
is mentioned in the importing guide.The text was updated successfully, but these errors were encountered: