Skip to content

fix: HasPendingPullOrPush dirty state not updated after checkout - #2734

Merged
love-linger merged 1 commit into
sourcegit-scm:developfrom
JC-Chung:fix/dirty-state-after-checkout
Sep 22, 2026
Merged

love-linger merged 1 commit into
sourcegit-scm:developfrom
JC-Chung:fix/dirty-state-after-checkout

Conversation

@JC-Chung

Copy link
Copy Markdown
Contributor

Checkout doesn't update the tab's HasPendingPullOrPush state, so it keeps showing the previous branch's status until F5.

Fix: re-evaluate HasPendingPullOrPush right after CurrentBranch is set in RefreshAfterCheckoutBranch(), using the checked-out branch's existing Ahead/Behind data (no extra git query needed, since checkout itself doesn't change ahead/behind counts).

@love-linger love-linger self-assigned this Sep 22, 2026
@love-linger love-linger added the bug Something isn't working label Sep 22, 2026
@love-linger
love-linger merged commit 2e02461 into sourcegit-scm:develop Sep 22, 2026
14 checks passed
@JC-Chung
JC-Chung deleted the fix/dirty-state-after-checkout branch September 22, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants