Fix py_str_to_git_oid for raw oids

This commit is contained in:
J. David Ibáñez
2013-03-27 19:11:10 +01:00
parent 1654f7ee45
commit 83874bd2d1

View File

@@ -46,7 +46,7 @@ py_str_to_git_oid(PyObject *py_str, git_oid *oid)
if (err)
return -1;
memcpy(oid->id, (const unsigned char*)hex_or_bin, len);
return len;
return len * 2;
}
/* Case 2: hex sha */