From 927d47cd888064de7c8e35ab824e10a1ce0f8cea Mon Sep 17 00:00:00 2001 From: Guillem Poy Date: Fri, 27 Mar 2026 11:31:43 +0100 Subject: [PATCH] fix: fetch before merging in Update from Default Branch Without a fetch, the operation compared against the stale local ref for the default branch, causing it to incorrectly report "already up to date" when remote had unpulled commits. Fixes pol-rivero/github-desktop-plus#110 Co-Authored-By: Claude Sonnet 4.6 --- app/src/ui/app.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/ui/app.tsx b/app/src/ui/app.tsx index b4491cf1e08..a40d4fb4748 100644 --- a/app/src/ui/app.tsx +++ b/app/src/ui/app.tsx @@ -640,7 +640,7 @@ export class App extends React.Component { // Disable autoupdates so that the app doesn't revert to the desktop/desktop upstream whenever there is an update. } - private updateBranchWithContributionTargetBranch() { + private async updateBranchWithContributionTargetBranch() { const { selectedState } = this.state if ( selectedState == null || @@ -659,6 +659,8 @@ export class App extends React.Component { return } + await this.props.dispatcher.fetch(repository, FetchType.UserInitiatedTask) + this.props.dispatcher.initializeMergeOperation( repository, false,