Move strToOid to S3.hs
Deal with partial Oids in gitlib-libgit2 (#2495)