Cremasteric muscle: Its nerve is the genito-femoral (L1, 2). Its artery is the cremasteric branch (exterior spermatic artery) of the inferior epigastric artery. Its action is to retract or draw up the testis, and stroking the skin of the thigh supplied by the ilio-inguinal nerve (L1) reflexly brings about this retraction.
Source: Boileau Grant JC. A Method of Anatomy: Descriptive and Deductive. 5th ed. Williams & Wilkins Co; 1952:214.