Commits

Bill_Barry committed fd7d019

check if parents[0] is not null as well

  • Participants
  • Parent commits 4982e91

Comments (0)

Files changed (1)

         if date:
             fp.write('# Date %d %d\n' % date)
         parents = [p.node() for p in ctx.parents() if p]
-        if parents:
+        if parents and parents[0]:
             fp.write('# Parent  %s\n' % hex(parents[0]))
         if msg:
             if not isinstance(msg, str):