do a checkout to switch branch when there is a proxy repo