-
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
Cannot push to new branch on remote #950
Comments
I have tried creating a branch and pushing to that, but no matter which commit I place that branch on, I always get
no matter which commit I place the branch on the remote at. Is there a specific commit I need to point it at? |
Hi @oli-obk , what the first message was trying to tell you is that josh doesn't know where to put this new branch you're pushing. So you should tell it, by providing a "base", another branch from which yours was derived. You can do that with
for example, if you branched off of master. Now that you've created your remote branch, you might want to delete it and try this way instead. |
Hi @oli-obk, |
Passing this flag seems to make no difference at all. I keep getting exactly the same error. I have tried using:
None of these worked or changed the output. |
I may just have screwed up the remotes -.- Will get back to you |
Did you delete the branch you created on the remote, before re-trying with |
yes, I tried that, too. I think my main issue may be selecting the right base. I keep getting failures if I use
I accidentally used |
no, |
In other words, if you created your branch while having |
Like @LMG said, the base parameter only supports refs, not commit hashes. I think we can add that, although I don't understand why you can't specify a ref instead. Are you trying to somehow fix the issue of commit duplication you are mentioning in rust-lang/miri#2569 ? We'll investigate what caused the CPU time eating with the erroneous parameter... |
I'm trying with
The reason |
googling reveals nothing on this error if it comes from github. If it comes from josh, maybe it's because of the way I did the partial repo pull:
so now there are two unrelated histories that got merged inside the miri repo. Then I tried to push the result of that merge back |
So you had pre-existing history in the Miri repo before you did the first pull via Josh 🤔 |
well, you can think about it the other way around. I did a clone with Josh and merged a random other history into that clone.
effectively yes. I'll see how your test work and try to produce a reproducer. There are like 5 other things that are very wrong with our history, but I'm mostly certain they are irrelevant. |
Ok, for that use case the recommended way would have been the one described in the docs: You push your initial external history via Josh using the Running and writing tests for Josh is pretty easy (thanks docker) you can also ask on discord if you have questions. |
FWIW I also got that error in my experiments with pushing things from Miri to rust through josh
In my case this had to do with this being a push for |
What makes the 'bad push' different is that that history has two roots (commits without parent). So maybe that is what is causing the problem here. |
I think this can be closed in favor of #998. The issue here occurred with seriously strange histories, but now we are encountering similar errors with "normal" Rust/Miri history |
I am trying to push changes from my partial fork to the main fork and then open a PR against the main fork. I am getting odd git errors I've never seen before:
Is there a better way to sync changes back?
The text was updated successfully, but these errors were encountered: