switch branch only when it is not master