Copy an already raw oid into a git_oid structure.
oid structure the result is written into.
the raw input bytes to be copied.