Clone to the correct branch