Section 324(2) in The Code of Criminal Procedure, 1973
(2)When any person is sent for trial to the Chief Judicial Magistrate or committed to the Court of Session under sub-section (1) any other person accused jointly with him in the same inquiry or trial shall be similarly sent or committed, unless the Magistrate discharges such other person under Section 239 or Section 245, as the case may be.