You need to check here whether `their_commit` is actually a valid `Rugged::Commit` object. Passing something different will cause the vm to crash right now.