revparse_single: add support for non ascii paths (#207)

This commit is contained in:
J. David Ibáñez
2013-04-15 11:21:17 +02:00
parent c7785e591b
commit 70fdabc433

View File

@@ -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;