Skip to content

Fix: Checked out existing local branch when checking out remote branch - #18761

Open
ManyaS-Git wants to merge 1 commit into
files-community:mainfrom
ManyaS-Git:fix-git-checkout
Open

Fix: Checked out existing local branch when checking out remote branch#18761
ManyaS-Git wants to merge 1 commit into
files-community:mainfrom
ManyaS-Git:fix-git-checkout

Conversation

@ManyaS-Git

Copy link
Copy Markdown

This PR resolves the issue where selecting a remote branch in the Git branches list silently did nothing if the local tracking branch already existed.

It updates CheckoutRemoteBranch to check out the existing local branch instead of returning early.

@CLAassistant

CLAassistant commented Jul 22, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Josh65-2201

Copy link
Copy Markdown
Member

Thanks for contributing, please follow the guidelines https://github.com/files-community/Files/blob/main/.github/CONTRIBUTING.md link the relevant issue and if there isn't one make one before PRs.

@yair100

yair100 commented Jul 27, 2026

Copy link
Copy Markdown
Member

@ManyaS-Git can you please link an approved issue?

@yair100 yair100 added the changes requested Changes are needed for this pull request label Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changes requested Changes are needed for this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants