- updating the branches if the branchPattern changes