Return text strings for hex-sha (like Object.sha)
This commit is contained in:
parent
7f6568038a
commit
caccfb4006
2
pygit2.c
2
pygit2.c
@ -315,7 +315,7 @@ git_oid_to_py_str(const git_oid *oid)
|
||||
char hex[GIT_OID_HEXSZ];
|
||||
|
||||
git_oid_fmt(hex, oid);
|
||||
return PyString_FromStringAndSize(hex, GIT_OID_HEXSZ);
|
||||
return PyUnicode_DecodeASCII(hex, GIT_OID_HEXSZ, "strict");
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user