But they pleaded guilty to reduced charges of assaulting Mr Nair to his severe injury and to the danger of his life while acting with others unknown.

They admitted running at Mr Nair, pushing him to the ground and repeatedly punching and kicking him on the head and body.

It was also accepted by the three that the attack, in the early hours of April 6, was racially motivated.

McCann changed his plea to guilty on the second day of his trial by jury at the High Court in Livingston yesterday.

His not guilty plea to attempting to murder the victim by repeatedly striking him with a dumbbell bar and a broken Jack Daniels bottle was accepted by the Crown. McCann was also acquitted yesterday of repeatedly attempting to strike another man on the head and body with a metal baton during the same incident after the Crown accepted his not guilty plea.

Gartland and O’Reilly admitted their part in the horrific attack on Mr Nair at an earlier hearing.

O’Reilly pled guilty to striking Mr Nair on the head and body with a metal baton or similar instrument all to his severe injury and the danger of his life.

He also admitted causing a racially aggravated disturbance by repeatedly shouting and swearing at police and making derogatory remarks in an ambulance taking him to Edinburgh Royal Infirmary.

And he pleaded guilty to acting in a racially aggravated manner by following Mr Kasim, racially abusing him and threatening him.

Gartland admitted a single charge of running at Mr Nair, causing him to fall to the ground and punching and kicking him on the body before repeatedly stamping on his head, hitting him on the head and body with a metal baton.

The jury heard that Mr Nair was admitted to hospital twice as a result of blood pooling between the right side of his brain and his skull, but was discharged after observation. He later returned to Dubai for hospital treatment.