Only merge if none of the branches contains references