update branch script