well, I found a workaround but do not find it a suitable solution at long term. Once I've cloned the repository, I am copying the ref from remotes/origin to heads within the local git metadata: filename frefin "&path.\.git\refs\remotes\origin\&targetBranch";
filename frefout "&path.\.git\refs\heads\&targetBranch";
data _null_ ;
rc = fcopy('frefin', 'frefout');
msg = sysmsg();
put rc= msg=;
run; and then successfully checking out the &targetBranch.: data _null_;
rc = git_branch_chkout("&path.", "&targetBranch.");
put rc = ;
run;
... View more