diff --git a/docs/objects.rst b/docs/objects.rst index 970a0c3..36edf95 100644 --- a/docs/objects.rst +++ b/docs/objects.rst @@ -129,7 +129,7 @@ them to the Git object database: There are also some functions to calculate the oid for a byte string without creating the blob object: - + .. autofunction:: pygit2.hash .. autofunction:: pygit2.hashfile diff --git a/docs/oid.rst b/docs/oid.rst index 3df5d3a..1ffc08c 100644 --- a/docs/oid.rst +++ b/docs/oid.rst @@ -47,17 +47,17 @@ The Oid type The constructor expects either a raw or a hex oid, but not both. An Oid object is created from the hexadecimal form this way:: - + >>> from pygit2 import Oid - + >>> hex = "cff3ceaefc955f0dbe1957017db181bc49913781" >>> oid1 = Oid(hex=hex) - + An Oid object is created from the raw form this way:: - + >>> from binascii import unhexlify >>> from pygit2 import Oid - + >>> raw = unhexlify("cff3ceaefc955f0dbe1957017db181bc49913781") >>> oid2 = Oid(raw=raw) diff --git a/src/pygit2.c b/src/pygit2.c index 94bb06d..758a96c 100644 --- a/src/pygit2.c +++ b/src/pygit2.c @@ -137,8 +137,8 @@ clone_repository(PyObject *self, PyObject *args) { const char *push_spec, *checkout_branch; int err; - if (!PyArg_ParseTuple(args, "zzIzzzzz", - &url, &path, &bare, &remote_name, &push_url, + if (!PyArg_ParseTuple(args, "zzIzzzzz", + &url, &path, &bare, &remote_name, &push_url, &fetch_spec, &push_spec, &checkout_branch)) return NULL;