-
Notifications
You must be signed in to change notification settings - Fork 392
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
jj st
suggests I run jj git pull
, which jj git
says doesn't exist
#412
Comments
After trying various things that didn't work, I found I could resolve this conflict by deleting the remote and re-adding it. |
This addresses the issue from the title of #412.
The suggestion to use Regarding the conflicted |
By the way, if you have time, you can use |
This addresses the issue from the title of #412.
I didn't do any of the things you listed as potentially causing this problem, so it sounds like it's a bug. It just happened to me again; the command that introduced the conflicting state was I can reproduce this:
|
One thing that might be relevant: for a while I had two different remotes configured with the same URL (because I wanted a name other than |
I still can't figure out what's going on :( Let's look at this bit from your first report:
That kind of conflict with one negative and one positive term should mean that the branch was moved from hashC to hashA on the remote and was deleted on same remote. As I said, that should only happen if you ran two |
I was trying to create a reproduction script for #412, but the script ran into another bug first. The script removed all the local and remote branches from the backing Git repo. I noticed that we would then try to abandon all commits. We should still count Git HEAD's target as visible and not try to abandon it. This patch fixes that.
I was trying to create a reproduction script for #412, but the script ran into another bug first. The script removed all the local and remote branches from the backing Git repo. I noticed that we would then try to abandon all commits. We should still count Git HEAD's target as visible and not try to abandon it. This patch fixes that.
I was trying to create a reproduction script for #412, but the script ran into another bug first. The script removed all the local and remote branches from the backing Git repo. I noticed that we would then try to abandon all commits. We should still count Git HEAD's target as visible and not try to abandon it. This patch fixes that.
I haven't been able to reproduce this using the steps in #412 (comment) above, but I'm quite confident it's a version of the same problem as in #463. See explanation in #463 (comment). I'll close this bug and use that one for tracking the fix. |
Description
Somehow my
trunk
branch entered a conflicting state, when I don't think it should have. I checked out the conflict and ranjj st
and it suggested I run a command that doesn't appear to exist.Steps to Reproduce the Problem
origin
contains commit X, andupstream
contains commit X followed by another commit Y.jj git clone origin
, and create some more commits, but don't changetrunk
jj git fetch --remote upstream
Expected Behavior
No conflict. My local
trunk
now refers toupstream
'strunk
.Actual Behavior
A conflict is reported. After I check out the conflict,
jj log
shows:jj branch list
shows:and
jj st
says:and finally,
jj git pull
says:I'm not sure how I'm supposed to resolve this kind of conflict or why it exists, but at least the command I'm being pointed to doesn't seem to exist.
Specifications
The text was updated successfully, but these errors were encountered: