mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-28 23:55:54 +00:00
26a554818a
When we export branches to Git, we didn't update our own record of Git's refs. This frequently led to spurious conflicts in these refs (e.g. #463). This is typically what happened: 1. Import a branch pointing to commit A from Git 2. Modify the branch in jj to point to commit B 3. Export the branch to Git 4. Update the branch in Git to point to commit C 5. Import refs from Git In step 3, we forgot to update our record of the branch in the repo view's `git_refs` field. That led to the import in step 5 to think that the branch moved from A to C in Git, which conflicts with the internal branch target of B. This commit fixes the bug by updating the refs in the `MutableRepo`. Closes #463. |
||
---|---|---|
.. | ||
src | ||
tests | ||
testutils | ||
build.rs | ||
Cargo.toml |