Fix revision walker
This commit is contained in:
parent
5cc4ba23d4
commit
323d2e23cd
5
pygit2.c
5
pygit2.c
@ -504,11 +504,6 @@ Repository_walk(Repository *self, PyObject *args)
|
||||
if (!PyArg_ParseTuple(args, "OI", &value, &sort))
|
||||
return NULL;
|
||||
|
||||
if (value != Py_None && !PyString_Check(value)) {
|
||||
PyErr_SetObject(PyExc_TypeError, value);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
err = git_revwalk_new(&walk, self->repo);
|
||||
if (err < 0)
|
||||
return Error_set(err);
|
||||
|
Loading…
x
Reference in New Issue
Block a user