Fixed indentation
This commit is contained in:
parent
b81810e9cb
commit
784583d21e
24
src/pygit2.c
24
src/pygit2.c
@ -168,19 +168,19 @@ init_file_backend(PyObject *self, PyObject *args)
|
|||||||
return PyCapsule_New(repository, "backend", NULL);
|
return PyCapsule_New(repository, "backend", NULL);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if (repository) {
|
if (repository) {
|
||||||
git_repository_free(repository);
|
git_repository_free(repository);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err == GIT_ENOTFOUND) {
|
if (err == GIT_ENOTFOUND) {
|
||||||
PyErr_Format(PyExc_Exception,
|
PyErr_Format(PyExc_Exception,
|
||||||
"Repository not found at %s", path);
|
"Repository not found at %s", path);
|
||||||
} else {
|
} else {
|
||||||
PyErr_Format(PyExc_Exception,
|
PyErr_Format(PyExc_Exception,
|
||||||
"Git error %d while opening repo at %s", err, path);
|
"Git error %d while opening repo at %s", err, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user