Fixing a Hole

"Fixing a Hole" is a song mainly written by Paul McCartney (credited to Lennon/McCartney) and performed by The Beatles on the 1967 album "Sgt. Pepper's Lonely Hearts Club Band".
Recording.
The first of two recording sessions for the song was at Regent Sound Studio in London on 9 February 1967 in three takes.
The lead vocal was recorded at the same time as the rhythm track, a change from their post-1963 approach of overdubbing the vocal.
According to McCartney, on the night of the session an unusual man appeared at the gate of McCartney's home and said he was Jesus Christ. After a cup of tea, and after getting him to promise to be quiet and sit in a corner, McCartney brought the man to the recording session. After the session the man left and was never heard from again.
In another version of the story, John Lennon arrived at the studio, found the man hanging around the front door, and it was Lennon who invited him in.
The song is referenced to by Lennon in the last stanza of the song "Glass Onion" ("Fixing a Hole in the ocean"), from "The Beatles", released a year later.
In the live-action scene at the end of the 1968 movie "Yellow Submarine", Ringo mentions that he gave the other half of the "hole in me pocket" to Jeremy, so that he could "stop his mind from wandering", a direct reference to "Fixing a Hole".