DT-6354:check whether remote branch is avalible before clone