If a court grants relief under an application for post conviction relief, the court shall order that the petitioner be held in custody pending a new trial if it appears that there are legally sufficient grounds upon which to reprosecute the petitioner.
In such a case, the petitioner shall be entitled to bail on the offense as though he has not been convicted of the offense.
La. Cr.P. § 930.5