Article 21-9 of the French Civil Code
Any person who fulfils the conditions set out in article 21-7 to acquire French nationality loses the option of declining it if he or she enlists in the French armed forces. Any minor born in France of foreign parents, who is regularly enlisted as a recruit, acquires French nationality on the date of his enlistment.