felipec / git

Fork of Junio Hamano's git for users
Other
204 stars 34 forks source link

Trying to Parse email as int. #54

Closed kevincox closed 10 years ago

kevincox commented 10 years ago

Hello,

I was trying to import the mozilla repo (git clone hg::http://hg.mozilla.org/mozilla-central/) and I got the following error near the end.

...
progress revision 119800 'master' (119800/160129)
progress revision 119900 'master' (119900/160129)
progress revision 120000 'master' (120000/160129)
Traceback (most recent call last):
  File "/usr/local/bin/git-remote-hg", line 1255, in <module>
    sys.exit(main(sys.argv))
  File "/usr/local/bin/git-remote-hg", line 1237, in main
    do_import(parser)
  File "/usr/local/bin/git-remote-hg", line 676, in do_import
    export_head(repo)
  File "/usr/local/bin/git-remote-hg", line 577, in export_head
    export_ref(repo, g_head[0], 'bookmarks', g_head[1])
  File "/usr/local/bin/git-remote-hg", line 465, in export_ref
    committer = "%s %s %s" % (user, time, gittz(int(tz)))
ValueError: invalid literal for int() with base 10: '<bsmith@mozilla.com>'
fatal: stream ends early
fast-import: dumping crash report to /home/kevincox/mozilla-central/.git/fast_import_crash_18181
fatal: Error while running fast-import

(git returned 128)

Some system stats.

% git --version
git version 1.8.4.2
% python2 --version
Python 2.7.6

Let me know if you need any more information.

felipec commented 10 years ago

I've pushed a fix for this. I haven't tested on this particular repository because it takes too long, but I will. Please do the same.

0eca325