Add hash checking to reup for empty subbranches