Skip to content

Show current git branch of a mounted git drive + pick up pull fix (1.53.0)#106

Merged
gmpassos merged 1 commit into
masterfrom
feat/drive-current-branch
Jul 2, 2026
Merged

Show current git branch of a mounted git drive + pick up pull fix (1.53.0)#106
gmpassos merged 1 commit into
masterfrom
feat/drive-current-branch

Conversation

@gmpassos

@gmpassos gmpassos commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Two related git-drive improvements:

  1. Show the current checked-out branch of a mounted git drive. The node reports the working tree's branch on clone/sync; it's persisted on MountRecord.currentBranch and shown in:

    • CLI: omnyshell drive ls (src@branch) and drive status (a Branch: line).
    • Dashboard TUI: a Branch row in the mount detail and @branch in the mount list.
  2. Picks up omnydrive 1.10.1, which fixes the git-drive pull crash (git merge --ff-only origin/<branch> - not something we can merge) when the node is on a branch that isn't on the origin — pull now no-ops when there's nothing to pull, else fetches the branch by name and fast-forwards FETCH_HEAD.

Notes

  • The node adds a branch field to the git.clone/git.sync/git.head replies (via GitCli.currentBranch); the client captures it in mountGit/remount/_syncGit.
  • currentBranch falls back to the requested gitBranch for display until first observed.

Test plan

  • dart analyze + dart format --set-exit-if-changed . — clean.
  • Git-mount integration test asserts record.currentBranch equals the origin's checked-out branch.
  • Full suite green (666 unit + integration). Depends on omnydrive: ^1.10.1.

🤖 Generated with Claude Code

The node now reports the working tree's checked-out branch on clone/sync; it's
persisted on MountRecord.currentBranch and surfaced in the CLI (`drive ls`
`src@branch`, `drive status` Branch line) and the dashboard TUI (Branch row in
the mount detail, `@branch` in the list). Depends on omnydrive ^1.10.1, which
also fixes the git-drive pull crash when the checked-out branch isn't on the
origin.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gmpassos gmpassos merged commit 10d31a0 into master Jul 2, 2026
5 checks passed
@gmpassos gmpassos deleted the feat/drive-current-branch branch July 2, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant