"Hopalong Peter" is a nonsense song, often thought of as a children's song.
It was printed in Belden and Hudson's The Frank C. Brown Collection of North Carolina Folklore, Volume Three: Folk Songs from North Carolina (1952) and Cohen, Seeger and Wood's Old Time String Band Songbook (1964) (Previously published as The New Lost City Ramblers Songbook).
It appears in the Roud Folk Song Index #17679.
It was recorded by Fisher Hendley & his Aristocratic Pigs (1939), J. E. Mainer's Mountaineers (1937) and New Lost City Ramblers on Old-Timey Songs for Children (1959) and Vol. I: The Early Years, 1958-1962 (1991).
Fisher Hendley & his Aristocratic Pigs were sponsored on their daily broadcasts on WFBC Radio in Greenville, South Carolina by Greenville’s Balentine meat packing company and the "aristocratic pigs" were their trademark. The story is that when the sponsorship ended, the group changed their name. I have found references to Fisher Hendley and his Rhythm Aristocrats who recorded in the 1940's. Their sponsor was the Adluh Flour Mills in Columbia, South Carolina. Hendley also led a band called The Carolina Tar Heels but it was not the band of the same name with Dock Walsh on banjo, Gwen Foster on harmonica, Clarence Ashley on guitar and, later, Garley Foster on harmonica replacing Gwen Foster (no relation).