Revert mistake
This commit is contained in:
@@ -593,14 +593,13 @@ Repository_create_blob(Repository *self, PyObject *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
Repository_create_blob_fromfile(Repository *self, PyObject *py_path)
|
Repository_create_blob_fromfile(Repository *self, PyObject *args)
|
||||||
{
|
{
|
||||||
git_oid oid;
|
git_oid oid;
|
||||||
const char* path;
|
const char* path;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
path = PyString_AsString(py_path);
|
if (!PyArg_ParseTuple(args, "s", &path))
|
||||||
if (path == NULL)
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
err = git_blob_create_fromworkdir(&oid, self->repo, path);
|
err = git_blob_create_fromworkdir(&oid, self->repo, path);
|
||||||
@@ -986,7 +985,7 @@ PyMethodDef Repository_methods[] = {
|
|||||||
{"create_blob", (PyCFunction)Repository_create_blob, METH_O,
|
{"create_blob", (PyCFunction)Repository_create_blob, METH_O,
|
||||||
Repository_create_blob__doc__},
|
Repository_create_blob__doc__},
|
||||||
{"create_blob_fromfile", (PyCFunction)Repository_create_blob_fromfile,
|
{"create_blob_fromfile", (PyCFunction)Repository_create_blob_fromfile,
|
||||||
METH_O,
|
METH_VARARGS,
|
||||||
"Create a new blob from file"},
|
"Create a new blob from file"},
|
||||||
{"create_reference", (PyCFunction)Repository_create_reference,
|
{"create_reference", (PyCFunction)Repository_create_reference,
|
||||||
METH_VARARGS|METH_KEYWORDS,
|
METH_VARARGS|METH_KEYWORDS,
|
||||||
|
|||||||
Reference in New Issue
Block a user