If a judgment in favor of the plaintiff in an action of ejectment be affirmed by the Supreme Court, and the appellant have a crop then planted and growing upon the premises in question, and shall file with the clerk of the circuit court in which the judgment was recovered an affidavit of the fact, and shall undertake, in writing, with such sureties and such sum as the clerk may require, to pay to the opposite party the rent which may be adjudged to be paid for the use and occupation of said premises until the end of the current year, a writ of possession shall not issue until the end of the year, and the affidavit and security for rent shall be filed by the clerk among the papers in the case. The clerk may examine the parties and other persons on oath as to the value of such rent and the sufficiency of the sureties, and may require their statements to be written and signed by them.