Two dealers were caught red-handed with a stash of cannabis after the police stopped one of them for using a mobile phone while driving, a court heard.
The driver, Mohamed Kagzi, a Loughborough University student, got out of the Vauxhall Corsa and unsuccessfully tried hiding a yoghurt pot containing 11 wraps of cannabis under his car.
Leicester Crown Court was told police recovered it.
Front seat passenger, Dilip Parbat, was found to have a wrap of the class B drug in his pocket and had a further one ounce of cannabis hidden in his underpants.
Neil Bannister, prosecuting, said: "Under the front passenger seat was a further one ounce of cannabis. They were both arrested and a search of Parbat's home led to a further amount being found, along with a set of scales, in a rucksack in his bedroom – which Parbat had been looking after for Kagzi.
"All the cannabis recovered amounted to 60.1 grams, worth about £1,300."
Kagzi (21), of Melbourne Road, Highfields, Leicester, and Parbat (20), of Dorset Street, Belgrave, Leicester, both admitted jointly possessing cannabis with intent to supply it on March 3.
Kagzi was jailed for six months and Parbat received a six-month detention sentence.
Both defendants were of previous good character and were drawn into offending after recently losing their jobs, the court was told. Recorder Stephen Eyre said: "You're both young men who have shown you can do well and take part in education.
"Both have the potential to be useful law-abiding members of society.
"Instead of using that potential, you chose to engage in the deliberate supply of drugs.
"It may be Kagzi was the initiator, but Parbat was happy to go along with that offending with a view to gain."
Shital Modhwadia, mitigating for Kagzi, said: "He's about to start the second year of a sports exercise and management university course.
"He became involved after he lost a job at Morrisons but has now got another job and intends to continue studying and working.
"A custodial sentence means he'd no longer be able to continue at university and would lose his job. He's never been arrested before and is assessed as having a low risk of reoffending.
"He had actually not made any money from it at the time he was stopped by the police.
"The deal was for him to take the cannabis (from a supplier) and try to sell some."
Lynsey Knott, for Parbat, said: "No transactions were completed and no money gained, although that was their intention.
"He's genuinely sorry he allowed himself to become involved and takes full responsibility for his wrongdoing."
She said Parbat had been laid off from working at a family store, which had been struggling, and was looking for work when he fell into temptation.
Miss Knott said: "He's brought shame upon his family but wants to prove it's something he bitterly regrets."