libgit2/pygit2 — pull request #55 by carlosmn (2012-02-03 17:38:15+00:00)
Title: errors: don't segfault if the library didn't set an error

git_lasterror() can return NULL. Passing that to the error formatting
functions leads to a segmentation fault.

Add a wrapper with a generic "no more information" string for the
cases when the library didn't set one.

Everyone using pygit2 must be a very good typist. Whilst debugging this I even managed to trigger the segfault accidentally due to a typo ;)