Updates the display name with the new branch name (if present)