revparse_single: add support for non ascii paths (#207)
This commit is contained in:
@@ -284,11 +284,10 @@ Repository_revparse_single(Repository *self, PyObject *py_spec)
|
||||
{
|
||||
git_object *c_obj;
|
||||
char *c_spec;
|
||||
char *encoding = "ascii";
|
||||
int err;
|
||||
|
||||
/* 1- Get the C revision spec */
|
||||
c_spec = py_str_to_c_str(py_spec, encoding);
|
||||
c_spec = py_str_to_c_str(py_spec, NULL);
|
||||
if (c_spec == NULL)
|
||||
return NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user