Brian White appeared in Glasgow Sheriff’s Court in custody.
The court heard the 32-year-old man violated a previous community payback order and was remanded in custody for a separate case.
His lawyer said: “He did his best and did not want to waste anyone’s time. He has been remanded in custody for a violent attack.
On March 9 last year, Kastmulk’s White was caught with drugs in Fraser Suites in Glasgow City Center.
He had about 60 pounds of diamorphine, 15 pounds of cocaine and 10 pounds of etizolam.
Sheriff Valerie Mess sent White to prison for 100 days.