(After stating the foregoing facts.) It is contended by the petitioner that the writ can be issued in a county other than the county in which a person is physically located and being unlawfully deprived of his liberty, and he cites
Crowell
v.
Crowell,
190
Ga.
501 (
The writ of habeas corpus in some form existed prior to Magna Charta. A recitation of • its history will be found in
Simmons
v.
Georgia Iron & Coal Co.,
117
Ga.
305 (
The awarding of the custody of children in divorce cases is relatively recent. Our first divorce law was approved December 1, 1802 (Ga. L. 1802, p. 69). From then until 1833 divorce judgments were not effective until sanctioned by an act of the General Assembly. In 1833, by an amendment to the Constitution of 1798 (Ga. L. 1833, p. 47), divorces became effective on two concurrent jury verdicts. We find no provision in Cobb’s Digest for awarding custody of the children. This first appeared in the Code of 1863, § 1685, which section has been carried forward in all subsequent Codes and now appears as § 30-127 in the Code of 1933.
There is a clear distinction between a writ to acquire freedom from a person who is illegally depriving one of his liberty, and a writ to secure the custody of a child awarded in a divorce decree. In the former the issue is lawful or unlawful imprisonment. In the latter no imprisonment or liberty is involved,
*229
but only the question of who shall have the custody of the child. This distinction has been recognized in New York Foundling Hospital
v.
Gatti,
The applicant is confined in the State Penitentiary in Tattnall County, and to test the legality of that detention proceedings must be brought in that county against the one who there has the physical control of his confinement.
Accordingly, the trial judge did not err in sustaining the plea to the jurisdiction and in dismissing the writ.
Judgment affirmed.
