changeset 4687:06a0e0557edc

convert: sometimes git forgets the author
author Matt Mackall <mpm@selenic.com>
date Sat, 23 Jun 2007 13:33:45 -0500
parents 8c3d449ecc63
children 8f91264f154a
files hgext/convert/git.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/git.py
+++ b/hgext/convert/git.py
@@ -82,6 +82,7 @@ class convert_git(converter_source):
         tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:]
         tz = -int(tzs) * (int(tzh) * 3600 + int(tzm))
         date = tm + " " + str(tz)
+        author = author or unknown
 
         c = commit(parents=parents, date=date, author=author, desc=message)
         return c