magit/magit — pull request #416 by jwiegley (2012-05-23 07:34:27+00:00)
Title: Guard against magit-format-ref returning nil

This happened in a repository with some non-standard refs. The guard against it is pretty simple.