Get the OID for the submodule in the current HEAD tree.
Pointer to submodule object
Pointer to git_oid or NULL if submodule is not in the HEAD.