Every officer committing any person under § 17-9-10 shall keep a record of the whole proceedings before him and immediately transmit a copy thereof to the Governor of this State for such action as he may deem fit therein under the law.