Use the correct union member for tag and branch files!