libgit2/rugged — pull request #214 by brianmario (2013-05-27 21:33:35+00:00)
Title: Fix potential crash in peel when the ref is symbolic

If the original reference we're peeling was symbolic, Rugged would crash in `git_oid_cmp` because `git_reference_target` would return nil as the right side. So if the reference is symbolic, skip the oid comparison since we'd have to resolve it down to the same value `git_reference_peel` is handing us anyway.