Between 1971 and 1972 Germany lifted the restriction on haircuts for soldiers and as photos of that period show, soldiers used to have long hair in the army at that time!
However, this restriction was active only for one year, as later on the defense minister decided a soldier’s hair could not touch his uniform or collar and that hair could not cover a person’s eyes or ears.
Got anything to add?