Skip to content

pull does not work when there are conflicts #18

@RalfJung

Description

@RalfJung

To reproduce, run rustc-josh-sync pull when there are conflicts.

I would expect this to give me the chance to resolve the conflicts to complete the sync.

Instead, it reverts everything. Now it seems impossible for me to sync anything...?

incoming ref: abd9cba5acbcc35fb4cc59ce25580fa1624b5571
+ cd "/home/r/src/rust/miri" && "git" "merge" "FETCH_HEAD" "--no-verify" "--no-ff" "-m" "Merge ref \'733dab558992\' from rust-lang/rust\n\nPull recent changes from https://github.com/rust-lang/rust via Josh.\n\nUpstream ref: 733dab558992d902d6d17576de1da768094e2cf3\nFiltered ref: abd9cba5acbcc35fb4cc59ce25580fa1624b5571\n\nThis merge was created using https://github.com/rust-lang/josh-sync.\n"
Auto-merging src/helpers.rs
CONFLICT (content): Merge conflict in src/helpers.rs
Automatic merge failed; fix conflicts and then commit the result.
Reverting HEAD to 303dbdd54e986c9300ca69b7aeb4a31075b1f673
+ cd "/home/r/src/rust/miri" && "git" "reset" "--hard" "303dbdd54e986c9300ca69b7aeb4a31075b1f673"
Pull failure: FAILED to merge new commits, something went wrong

Caused by:
    Command `cd "/home/r/src/rust/miri" && "git" "merge" "FETCH_HEAD" "--no-verify" "--no-ff" "-m" "Merge ref \'733dab558992\' from rust-lang/rust\n\nPull recent changes from https://github.com/rust-lang/rust via Josh.\n\nUpstream ref: 733dab558992d902d6d17576de1da768094e2cf3\nFiltered ref: abd9cba5acbcc35fb4cc59ce25580fa1624b5571\n\nThis merge was created using https://github.com/rust-lang/josh-sync.\n"` failed with exit code Some(1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions