Does anybody really do that, though? Pledge allegiance to a head of government? The oath of allegiance in the US military is to their Constitution, as is the oath of enlistment in India and Ireland. The enlistment oath in Russia, France and Germany is to the nation itself. Being a Republic doesn’t necessarily mean an oath to a politician.I would have resigned my commission before pledging allegiance to any head of government.