Skip to content

Bug: lore sync reports latest while the local branch remains behind remote #122

Description

@dzmitryj

Environment

  • Lore: 0.8.3+201
  • Platform: Windows

Reproduction

  1. Create and publish a merge revision using lore branch merge into.
  2. Sync to the published revision:
lore sync <revision> --remote
  1. Inspect the state:
lore status
lore branch info
  1. Run sync again:
lore sync

Expected behavior

Syncing to the published revision should update both the working copy and the local branch pointer.

Actual behavior

The working copy moves to the correct branch and revision, but lore status reports:

Local branch is behind remote

lore branch info shows the previous revision under Latest and the merge revision under Remote Latest.

Running lore sync again reports:

Already on branch ... latest revision ...

The local pointer remains unchanged, leaving sync and status reporting contradictory states.

Recovery and side effects

The pointer had to be reconciled manually:

lore branch reset <revision>

Afterward, lore status correctly reported that the local branch was in sync with remote.

No tracked or staged changes were present.

Notes

Synchronizing by remote revision updates the working copy but does not update the local branch's Latest pointer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions