libgit2/objective-git — pull request #307 by jspahrsummers (2014-01-01 17:32:15+00:00)
Title: Check the result of git_reference_peel, not the pointer

There’s no reason `obj` is guaranteed to be NULL here. Trying to use it could result in a crash.