Augie Fackler committed 7ff4088

gitlog: gracefully handle lookups of the nullrev

This was causing problems when a bogon ref got written during some
manual testing.

Comments (0)

Files changed (1)

     def __init__(self, repo):
         self.gitrepo = repo
+hexnull = node.hex(node.nullid)
 def commitsort(repo):
     """order git commits optimally by date and dag
     walked = set()
     while mustwalk:
         hexsha = mustwalk.pop(0)
+        if hexsha == hexnull:
+            continue
         obj = repo[hexsha]
         while isinstance(obj, objects.Tag):