If from the examination before the judge or issuing authority it appears that the person held is the person charged with having committed the crime alleged, and, except in cases arising under section 9127 (relating to extradition of persons not present in demanding state at time of commission of crime), that he has fled from justice, the judge or issuing authority must, by a warrant reciting the accusation, commit him to the county jail for such a time, not exceeding 30 days, and specified in the warrant, as will enable the arrest of the accused to be made under a warrant of the Governor on a requisition of the executive authority of the state having jurisdiction of the offense unless the accused give bail as provided in section 9137 (relating to bail), or until he shall be legally discharged.
42 Pa.C.S. § 9136