It is effectively a clove hitch with an extra initial turn.
The clove hitch shown is composed of only two turns around the shaft.
I usually prefer about four, essentially one clove hitch next to the other.
Probably that very night, if the temporary clove hitch was an indication.
Then make an additional turn around with the working end, in the same direction as the turns forming the clove hitch.
Now, tuck the working end under the standing part of the original clove hitch.
It was tied around the nail in a clove hitch.
With certain types of cord, the clove hitch can slip when loaded.
This knot is also sometimes referred to as a clove hitch over itself.
It can be finished with a clove hitch, which is also known as double half-hitch.