Description
On latest main branch (likely previous versions but have not tested) if you checkout a remote branch (one that does not exist as a local branch) then the files are not synced with IRIS.
This appears to be related to the below block of code where the diff for the sync is performed prior to the checkout command being performed. One cannot simply perform a diff on a remote branch without either already having checked it out or prefixing the name with 'origin/' or something similar. Therefore the diff sees no differences and nothing is synced.
git-source-control/cls/SourceControl/Git/Utils.cls
Lines 1970 to 1979 in 4cea6ab
My initial thoughts are that something similar to what was done for the pull command in #517 could be applied so that the diff is performed after the checkout command is run. It's slightly more complicated though as a checkout can be performed both via the IDE menu and from Git UI. Both situations would need to be handled.
IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2024.1 (Build 267_2U) Tue Apr 30 2024 16:04:37 EDT