More resilend handling of shared repo vs. branch

Handle case where we have just 1 branch at the very root of the shared repo
as if it was single-branch checkout