libgit2/pygit2 — pull request #151 by cholin (2012-11-22 14:53:53+00:00)
Title: only use error message if giterr_last() is not null

expected errors in libgit2 must not set `git_error`. If we do not check for a NULL-Pointer we could get a segmentation fault...