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